Author

Topic: Reaper Log File (Read 1469 times)

full member
Activity: 448
Merit: 130
3D-Printing goes Blockchain!
June 07, 2013, 03:54:52 AM
#7
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!
hero member
Activity: 826
Merit: 1001
June 07, 2013, 03:43:37 AM
#6
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.
full member
Activity: 448
Merit: 130
3D-Printing goes Blockchain!
June 06, 2013, 05:50:18 PM
#5
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.
Woops. K, had to run downstairs and check on my headless box.
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!
full member
Activity: 322
Merit: 113
Sinbad Mixer: Mix Your BTC Quickly
June 06, 2013, 05:43:13 PM
#4
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.
Woops. K, had to run downstairs and check on my headless box.
It's:
./reaper | tee my.log

At least, it works with my cgminer script, assuming it does the same with Reaper.
full member
Activity: 448
Merit: 130
3D-Printing goes Blockchain!
June 06, 2013, 05:07:02 PM
#3
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.
full member
Activity: 322
Merit: 113
Sinbad Mixer: Mix Your BTC Quickly
June 06, 2013, 04:59:10 PM
#2
Not on my linux box at the moment, but try adding 2>&1 to the end.
./reaper & > mylog.log 2>&1
full member
Activity: 448
Merit: 130
3D-Printing goes Blockchain!
June 06, 2013, 04:43:41 PM
#1
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.
Jump to: