1/18 I'm sorry to repost this, but I lost the motd answer two months ago.
Here is my question. In regular shell scripts, I can do `nohup prog &"`
or simply `prog &`. However, in Perl, it seems that when I exit the
parent Perl program, ALL the children exit as well! How do I make it
behave like any other shell scripts, without using fork? Thanks.
\_ `prog &` doesn't normally make sense -- backquotes mean to capture
the output of a program, but the programs you want to run in the
background don't usually generate any output. Perhaps you wanted
system "prog &"?
\_ AH that works! No wonder when I kill my parent process, the
children dies (cuz I'm waiting for their output). THANKS MOTD! |