Closed alexjh closed 8 years ago
Hi Alex,
You can use a json configuration file to avoid showing all command arguments from ps.
marshone@mrxcc:/var/tmp/$ pgrep -fl cudaminer 15281 ./cudaminer -c mrxconfig.js
marshone@mrxcc:/var/tmp/$ ps -ef | grep 15281 mrxcc 15281 7986 2 16:08 pts/5 00:00:17 ./cudaminer -c mrxconfig.js
marshone@mrxcc:/var/tmp/$ cat mrxconfig.js
{ "_comment1" : "Instance0",
"url" : "stratum+tcp://myhost:9327",
"user" : "LTcBopwdkCekGgo8KS3zDzcJ8tQwzcVGE9+0.000320",
"pass" : "x",
"algo" : "scrypt",
"launch-config" : "T20x24",
"hash-parallel" : "2",
"syslog" : true,
"no-autotune" : true
}
I have extracted all the configuration options you can use in the json.
$ cat all_config.js { algo : "", background : "", benchmark : "", cert : "", config : "", debug : "", devices : "", hash-parallel : "", help : "", interactive : "", launch-config : "", lookup-gap : "", loop-pools : "", no-autotune : "", no-longpoll : "", no-stratum : "", pass : "", protocol-dump : "", proxy : "", quiet : "", retries : "", retry-pause : "", scantime : "", single-memory : "", syslog : "", texture-cache : "", threads : "", time-limit : "", timeout : "", url : "", user : "", userpass : "", version : "", }
Enjoy.
If you find that useful donation are welcome LTcBopwdkCekGgo8KS3zDzcJ8tQwzcVGE9
I wanted to make the miner a little more friendly when run on a multi-user system. This change hides the password when it is viewed by 'ps'.