Search found 4 matches
- 08 Nov 2012 06:03
- Forum: DOS Batch Forum
- Topic: Batch file help.
- Replies: 6
- Views: 2272
Re: Batch file help.
Thanks for that. I hadn't quite picked up when spaces counted.
- 07 Nov 2012 11:48
- Forum: DOS Batch Forum
- Topic: Batch file help.
- Replies: 6
- Views: 2272
Re: Batch file help.
Thanks a lot! What I currently have is this: FOR %%N IN (8 7 6 5 4 3 2) DO ( plink username@hostname "rsh c2node%%N uptime" | FIND "load average: 0.00" >nul IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 set node=%%N& goto :FoundNode ) :NodeNotFound set node =8 :FoundNode Stuff to do Do...
- 07 Nov 2012 10:27
- Forum: DOS Batch Forum
- Topic: Batch file help.
- Replies: 6
- Views: 2272
Re: Batch file help.
The command I am running is this: plink login@host.edu "rsh c2node%%N uptime" Where %%N is the current node number in the FOR loop going from 8 to 2. The output from the command looks like this: HH:MMam up nn days HH:MM, X users, load average: X.XX, X.XX, X.XX All I'm really looking to che...
- 06 Nov 2012 18:46
- Forum: DOS Batch Forum
- Topic: Batch file help.
- Replies: 6
- Views: 2272
Batch file help.
Hey, I'm fairly new to batch file writing, and I'm trying to write a batch file that finds a node on a cluster with the least load and returns, or returns the first node it finds with zero load. I'm using PUTTY's plink to run "uptime" on each node of the cluster, and my plan was to use FIN...