Hi, how can I print the output of the miner into a file? I do
for (( j=0; j<$num; j++ )); do
./phoenix.py -u http://xyz_$j:123456@mineco.in:3000/ -k poclbm DEVICE=$j VECTORS BFI_INT FASTLOOP=false AGGRESSION=13 > /home/user/miner_log_$j.txt &
sleep 10
done
so it runs in the background and prints the output into the log_files. But I get a lot of additional unreadable characters in each line looking like this:
[424.39 Mhash/sec] [56 Accepted] [1 Rejected] [RPC (+LP)] [424.90 Mhash/sec] [56 Accepted] [1 Rejected] [RPC (+LP)] [425.21 Mhash/sec] [56 Accepted] [1 Rejected] [RPC (+LP)] [425.38 Mhash/sec] [56 Accepted] [1 Rejected] [RPC (+LP)] [425.21 Mhash/sec] [56 Accepted] [1 Rejected] [RPC (+LP)] [425.29 Mhash/sec] [56 Accepted] [1 Rejected] [RPC (+LP)] [424.98 Mhash/sec] [56 Accepted] [1 Rejected] [RPC (+LP)] [424.83 Mhash/sec] [56 Accepted] [1 Rejected] [RPC (+LP)] [19/08/2011 14:07:43] Result: 06c4d93e accepted
All I want to see in the logfile is the time, the speed, the accepted/rejected number and the result. How can I do that?
see my script:
while i=1
do
date
echo GPU1:`tail -1 ~/phoenix/gpu1.out | awk '{print $1 $2 $3 $4 $5 $6}'` Load:`aticonfig --adapter=0 --od-getclock | grep GPU | cut -d ":" -f2` Temp:`aticonfig --adapter=0 --od-gettemp | grep Temperature | cut -d "-" -f2`
echo GPU2:`tail -1 ~/phoenix/gpu2.out | awk '{print $1 $2 $3 $4 $5 $6}'` Load:`aticonfig --adapter=1 --od-getclock | grep GPU | cut -d ":" -f2` Temp:`aticonfig --adapter=1 --od-gettemp | grep Temperature | cut -d "-" -f2`
echo GPU3:`tail -1 ~/phoenix/gpu3.out | awk '{print $1 $2 $3 $4 $5 $6}'` Load:`aticonfig --adapter=2 --od-getclock | grep GPU | cut -d ":" -f2` Temp:`aticonfig --adapter=2 --od-gettemp | grep Temperature | cut -d "-" -f2`
sleep 30
done
you run this code with
nohup yourscript.sh > gpuall.out &
i run phoenix with:
python phoenix.py -u http://[...] -b http://[...] -k phatk2 VECTORS BFI_INT AGGRESSION=11 FASTLOOP=false WORKSIZE=256 DEVICE=0 | tee gpu1.out
etc....
for each miner with different Device and output-numbers...
after you have start the Miners and the script you can follow the output with "tail -f gpuall.out" and see like this:
:~$ tail -f gpuall.out
GPU2:[374.89Mhash/sec][106Accepted][2Rejected] Load: 99% Temp: 68.50 C
GPU3:[395.66Mhash/sec][121Accepted][0Rejected] Load: 99% Temp: 65.50 C
Fr 19. Aug 17:50:04 CEST 2011
GPU1:[374.58Mhash/sec][105Accepted][4Rejected] Load: 99% Temp: 68.00 C
GPU2:[375.18Mhash/sec][107Accepted][2Rejected] Load: 99% Temp: 68.50 C
GPU3:[417.03Mhash/sec][125Accepted][0Rejected] Load: 99% Temp: 66.00 C
Fr 19. Aug 17:50:34 CEST 2011
GPU1:[374.70Mhash/sec][108Accepted][4Rejected] Load: 99% Temp: 68.00 C
GPU2:[375.26Mhash/sec][110Accepted][2Rejected] Load: 99% Temp: 68.50 C
GPU3:[396.77Mhash/sec][130Accepted][0Rejected] Load: 97% Temp: 65.50 C
Fr 19. Aug 17:51:04 CEST 2011
GPU1:[375.87Mhash/sec][113Accepted][4Rejected] Load: 99% Temp: 67.50 C
GPU2:[372.67Mhash/sec][112Accepted][2Rejected] Load: 99% Temp: 68.50 C
GPU3:[416.69Mhash/sec][135Accepted][0Rejected] Load: 98% Temp: 66.50 C
[...]