Berkeley CSUA MOTD:Entry 15252
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2024/12/25 [General] UID:1000 Activity:popular
12/25   

1999/1/19-21 [Computer/SW/Languages/Perl] UID:15252 Activity:nil
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!