Author

Topic: Need a little help for my monitoring script code... (Read 89 times)

hero member
Activity: 1274
Merit: 556
Hah! Found it. My miner's file name was too long!
By shortening it to 8 characters the script works perfectly... Go figure! Cheesy
hero member
Activity: 1274
Merit: 556
Hello fellow miners

I've been trying to convert Sverox's script to use with another miner (it's just monitoring whether the miner is running and if not, attempts to restart it).

I'm struggling with this line:

TIMEOUT /T %varSeconds%
FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %EXE%"') DO IF %%x == %EXE% goto aProcessFound

For some reason, even if the miner is running, the script doesn't find it and starts another one.

Any ideas?
Jump to: