Bitcoin Forum
May 20, 2018, 04:49:25 PM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Need a little help for my monitoring script code...  (Read 11 times)
dragonmike
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500


“Blockchain Connection Framework”


View Profile
January 12, 2018, 10:00:25 PM
 #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?

███████████████████████████████████████
███████▀ ▄▄▄ ▀██▌ ███ ▐███ ▀████ ██▌ ██
███████ █████ ██ ▌▐█▌▐ ███ ▄ ▀██ ██▌ ██
███████▄ ▀▀▀ ▄█▌▐█ █ █▌▐██ ██▄ ▀ ██▌ ██
███████▀▀▀▀▀▀▀█ ███ ███ ██ ████▄ ██▌ ██
███████████████████████████████████████
███████▄▄▄ ▄▄▄█ ████ ██ ▄▄▄▄▀███ ▄▄▄▄██
██████████ ████ ████ ██ █████ ██ ▀▀▀███
██████████ ████ ████ ██ █████ ██ ██████
██████████ ████▄▀▀▀▀▄██ ▀▀▀▀▄███ ▀▀▀▀██
██████████████████████████████████████▀
████████████████████████████████████▀
██████████████████████████████████▀
OMNITUDE▄████
███
███
███
███
███
███
███
███
███
███
███
▀████
.
TWITTER     REDDIT     LINKEDIN
ANN THREAD
FACEBOOK          TELEGRAM
████▄
███
███
███
███
███
███
███
███
███
███
███
████▀
  JOINNOW
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
dragonmike
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500


“Blockchain Connection Framework”


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

███████████████████████████████████████
███████▀ ▄▄▄ ▀██▌ ███ ▐███ ▀████ ██▌ ██
███████ █████ ██ ▌▐█▌▐ ███ ▄ ▀██ ██▌ ██
███████▄ ▀▀▀ ▄█▌▐█ █ █▌▐██ ██▄ ▀ ██▌ ██
███████▀▀▀▀▀▀▀█ ███ ███ ██ ████▄ ██▌ ██
███████████████████████████████████████
███████▄▄▄ ▄▄▄█ ████ ██ ▄▄▄▄▀███ ▄▄▄▄██
██████████ ████ ████ ██ █████ ██ ▀▀▀███
██████████ ████ ████ ██ █████ ██ ██████
██████████ ████▄▀▀▀▀▄██ ▀▀▀▀▄███ ▀▀▀▀██
██████████████████████████████████████▀
████████████████████████████████████▀
██████████████████████████████████▀
OMNITUDE▄████
███
███
███
███
███
███
███
███
███
███
███
▀████
.
TWITTER     REDDIT     LINKEDIN
ANN THREAD
FACEBOOK          TELEGRAM
████▄
███
███
███
███
███
███
███
███
███
███
███
████▀
  JOINNOW
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!