Bitcoin Forum
July 03, 2024, 12:55:10 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Need a little help for my monitoring script code...  (Read 91 times)
dragonmike (OP)
Hero Member
*****
Offline Offline

Activity: 1274
Merit: 556



View Profile
January 12, 2018, 10:00:25 PM
Last edit: January 12, 2018, 10:33:42 PM by dragonmike
 #1

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?
dragonmike (OP)
Hero Member
*****
Offline Offline

Activity: 1274
Merit: 556



View Profile
January 12, 2018, 10:48:51 PM
 #2

Hah! Found it. My miner's file name was too long!
By shortening it to 8 characters the script works perfectly... Go figure! Cheesy
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!