Berkeley CSUA MOTD:Entry 22687
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/04 [General] UID:1000 Activity:popular
4/4     

2001/10/11-12 [Computer/SW/Languages/Misc] UID:22687 Activity:nil
10/10   Is there any quick "script starter" that will daemonize a process
        and return its PID?  I'm looking for something like
        % pid=`start foo [args...]`
                (foo starts running in the background)
        % kill -9 $pid
        \_ foo [args...] & pid=$!
        \_ foo [args...] & pid=$!     # sh
        \_ foo [args...] & set pid=$! # csh