What's the nohup on Windows?

www picture www · Aug 1, 2010 · Viewed 81.8k times · Source

I want to run a Java jar file like this:

java -jar spider.jar

How to run it on the background on Windows?

Like this on Linux:

nohup java -jar spider.jar > /var/tmp/spider.log 2>&1 &

Answer

Joey picture Joey · Aug 1, 2010

On Windows it's not normal that a process terminates once its parent was killed (like Unix-likes do it normally). Therefore there is no direct necessity for something like nohup. If you want to avoid the console window associated with it, you can use javaw but redirection won't work, then.