<<  >> (p.133)
    Author Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.1  (Read 5806523 times)
    This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic. (3 posts by 1+ user deleted.)
    Proofer
    Member
    **
    Offline Offline

    Activity: 266
    Merit: 36


    View Profile
    January 02, 2012, 11:36:10 PM
     #2641

    Feature request...

    On startup output all settings to stderr.

    Edit:  Or not. ... I realize I can in effect do this myself by adding a command to my cgminer startup script to copy cgminer.conf to my logs dir, adding a timestamp to the filename.  And for extra credit, copy only if it's been changed since the last copy.

    Here's my current startup script:

    Code:
    xhost + &>dev/null
    now="`date +%Y.%m.%d.%H.%M.%S`"
    cd ~/miners/cgminer  # or wherever your cgminer directory is
    # logs/ is assumed to be in the cgminer directory
    diff cgminer.conf $(ls -1 logs/*.conf | tail -n 1) &>dev/null || cp cgminer.conf logs/$now.conf
    DISPLAY=:0 cgminer -c cgminer.conf 2> logs/$now.log

    This results in files in the logs directory like this:
    2012.01.01.21.12.05.log
    2012.01.02.07.24.45.log
    2012.01.02.08.39.02.conf
    2012.01.02.08.39.02.log
    2012.01.02.12.38.31.log

    ...where the .conf file is copied to logs (and renamed with a timestamp) only if it's changed since the last time it was copied.

    Edit: my first copy/paste omitted the first line of the script.
Page 132
Viewing Page: 133