Displaying 1 result from an estimated 1 matches for "lati_logfile".
2008 Mar 07
0
Piping logs to rotatelog
...#logfile = File.join(ops[:cwd],logfile)
#if not File.exist?(File.dirname(logfile))
# log "!!! Log file directory not found at full path
#{File.dirname(logfile)}. Update your configuration to use a full
path."
# exit 1
# end
#end
lati_logfile = "|/home/admin/rotatelogs " + logfile + " 15"
rotate_log = File.popen(lati_logfile,"w")
#Daemonize.daemonize(logfile)
Daemonize.daemonize(rotate_log)
Is this EVEN feasiable ?
--
Posted via http://www.ruby-forum.com/.