Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 4
    thanks for reading my op. :) this spawns a child process, not a full process Commented Sep 14, 2013 at 22:39
  • Perhaps I'm not understanding your question. Can you give an example when this does not satisfy your requirements? Commented Sep 15, 2013 at 0:42
  • This opens a child process. If the parent process exits with code 0 it is fine, but when I kill it in another way, like closing the terminal, it quits the child process too Commented Sep 15, 2013 at 10:57
  • That's odd. If I use command = 'ls -lRa / > /tmp/out', I can run the script, close the terminal, open a new terminal and ps axu | grep ls shows ls -lRa is still running. Commented Sep 15, 2013 at 12:13