Subj : posix strftime To : tony summerfelt From : Maurice Kinal Date : Fri Mar 11 2005 05:41 pm Hey tony! Mar 11 19:04 05, tony summerfelt wrote to Maurice Kinal: MK>> Sounds promising for ruby then. What have they got wrt Linux MK>> daemons? ts> ruby deamon in 7 easy steps: ts> exit if fork # Parent exits, child continues. ts> Process.setsid # Become session leader. ts> exit if fork # Zap session leader. See [1]. ts> Dir.chdir "/" # Release old working directory. ts> File.umask 0000 # Ensure sensible umask. Adjust as ts> needed. ts> STDIN.reopen "/dev/null" # Free file descriptors and ts> STDOUT.reopen "/dev/null", "a" # point them somewhere sensible. ts> STDERR.reopen STDOUT # STDOUT/ERR should better go to a ts> logfile. ts> i believe that's slightly longer than the perl version... ts> .t Oh yeah. I noticed a couple of networking thingies there but mostly client end. They seem a tad fixated with http and xml. We'll have to see what we can make out of it when we get that far. Life is good, Maurice --- Msged/LNX 6.1.2 * Origin: Coffin Point - Ladysmith, BC Canada (1:153/401.1) .