Title: Reaper Log File Post by: kevindeangelis on June 06, 2013, 09:43:41 PM I'm using Ubuntu 13.04, Anyone know how to get reaper to log the output and run in the background?
I've tried "./reaper & > mylog.log" but no luck. I just end up with an empty file. Thanks in advance. Title: Re: Reaper Log File Post by: TheSpiral on June 06, 2013, 09:59:10 PM Not on my linux box at the moment, but try adding 2>&1 to the end.
./reaper & > mylog.log 2>&1 Title: Re: Reaper Log File Post by: kevindeangelis on June 06, 2013, 10:07:02 PM Not on my linux box at the moment, but try adding 2>&1 to the end. ./reaper & > mylog.log 2>&1 hmmm... thanks for the reply, but I gave that a try and I'm still getting the same results. Title: Re: Reaper Log File Post by: TheSpiral on June 06, 2013, 10:43:13 PM Not on my linux box at the moment, but try adding 2>&1 to the end. ./reaper & > mylog.log 2>&1 hmmm... thanks for the reply, but I gave that a try and I'm still getting the same results. It's: ./reaper | tee my.log At least, it works with my cgminer script, assuming it does the same with Reaper. Title: Re: Reaper Log File Post by: kevindeangelis on June 06, 2013, 10:50:18 PM Not on my linux box at the moment, but try adding 2>&1 to the end. ./reaper & > mylog.log 2>&1 hmmm... thanks for the reply, but I gave that a try and I'm still getting the same results. It's: ./reaper | tee my.log At least, it works with my cgminer script, assuming it does the same with Reaper. That worked! .. well, with a "&" at the end ie: ./reaper | tee my.log & Thanks! Title: Re: Reaper Log File Post by: BenTuras on June 07, 2013, 08:43:37 AM Better is ./reaper 2>&1 | tee -a my.log &
You'll then also catch all error messages(2>&1) in your logfile and append(-a) it to your logfile if the logfile already exist. This way you will not overwrite your logfile if you start reaper again. Without 2>&1, you'll only log all standard output messages in your logfile. BTW, the error in your first command line was that you were starting reaper in the background(./reaper & ) and an empty command(> mylog.log) that was sending its output to your logfile, hence your logfile was empty. Title: Re: Reaper Log File Post by: kevindeangelis on June 07, 2013, 08:54:52 AM BTW, the error in your first command line was that you were starting reaper in the background(./reaper & ) and an empty command(> mylog.log) that was sending its output to your logfile, hence your logfile was empty. DOH! you're right! .. Thanks! |