Subj : posix strftime To : Maurice Kinal From : tony summerfelt Date : Fri Mar 11 2005 07:04 pm # On Thu, Mar 10/05 at 09:41 AM, Maurice Kinal wrote to tony summerfelt: MK> Sounds promising for ruby then. What have they got wrt Linux daemons? ruby deamon in 7 easy steps: exit if fork # Parent exits, child continues. Process.setsid # Become session leader. exit if fork # Zap session leader. See [1]. Dir.chdir "/" # Release old working directory. File.umask 0000 # Ensure sensible umask. Adjust as needed. STDIN.reopen "/dev/null" # Free file descriptors and STDOUT.reopen "/dev/null", "a" # point them somewhere sensible. STDERR.reopen STDOUT # STDOUT/ERR should better go to a logfile. i believe that's slightly longer than the perl version... ..t .... telnet://ventedspleen.dyndns.org --- GoldED/spleen 3.0.1+ * Origin: ventedspleen.dyndns.org (1:249/100) .