Trying to run mvn exec:java -Dexec.mainClass.
that run a long process (could take up to 16 hours) on EC2 but whenever I lose connection with the remote server, the process stopped. I was wondering if I can run this in the background that doesn't affect my connection with EC2 remote server.
Are you just running it on the command line? You can use nohup (http://linux.101hacks.com/unix/nohup-command/)
nohup mvn exec:java -Dexec.mainClass &
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With