Post
Topic
Board Mining (Altcoins)
Re: [OS] nvOC easy-to-use Linux Nvidia Mining v0019
by
fullzero
on 05/09/2017, 16:49:57 UTC
@fullzero

please help me, howto log ethminer console on a log file


Find ethminer line in 3main and add this to the end of it
Code:
2>&1 | tee your_log-file_name.log

like this :

Code:
screen -dmS miner $HCD -S $UBQ_POOL -O $UBQADDR:x -U   2>&1 | tee your_log-file_name.log

I tried but the log file was empty


My guess is you will most likely need to redirect the screen to a log and not ethminer; but I haven't tried it.
What do I need to do? I will try

Try adding a "L" to the screen args like this:

Code:
screen -dmSL miner $HCD -S $UBQ_POOL -O $UBQADDR:x -U   2>&1 | tee your_log-file_name.log

That's what a I do. Then a file called "screenlog.0" will be created. Keep in main that this file grows constantly, so eventually you will have to do some thing about it.
To watch the output in real time: tail -f /path to screenlog.0
To clear logs you dont want to keep enable the clear log file at reboot in 1bash
Then add your file address to "Clear_Logs" file

This is probably the easiest way.  I made the clear_logs bash to inhibit the runaway growth; which is very quick in somecases where there is a soft crash constantly occuring.  Unless I am troubleshooting a rig; I don't need logs, so I use:

Code:
CLEAR_LOGS_ON_BOOT="YES"

with my rigs.