Post
Topic
Board Mining software (miners)
Re: CGMINER CPU/GPU miner overclock monitor fanspeed in C linux/windows/osx 2.0.7
by
Muppion
on 02/11/2011, 18:19:35 UTC
I have a simple startup script to launch cgminer on restart (Ubuntu) and have 2>cglog.txt to generate a log.  Of course it overwrites on every restart, which isn't exactly useful.  Is there a way to make it change the name of the log on every restart so it doesn't overwrite?

you can add the following lines before the start of cgminer to give the log file an unique name:

DAY=`date '+%F_%T'`
LOG=cglog-${DAY}.log

--------------------

You can then use the variable $LOG as the unique log file name for this run of the miner as in .... 2>$LOG

The different log files are named as date with time at the start of the name (as in cglog-2011-11-02_19:15:01.log).

(See date --help for more formats to use if needed)

/Muppion