Abhijit Hiremagalur's blog
Ask for Help
"Daemon best practices in Ruby?"
- We haven't tried DaemonKit
- SimpleDaemon is what we currently use, which we suspect of interfering with monit (had problems with multiple instances starting, and process not starting upon reboot).
- A couple of people suggested looking at Daemonize
- Always monitor daemons with sanity checks (e.g. memory usage); use Monit or God
- Roll your own?
"cut doesn't handle strange characters in large (5GB) text file, are there other unix commands for text file manipulation that are utf-8 compliant?"
- Try
awk/sedmaybe - Try using
od/hexdumpto figure out what the weird characters are
UPDATE 01/14/2009: Chad's corrections
