![]() |
|
|
#1 |
|
Sep 2004
283010 Posts |
Hey gurus,
If I reboot the server the internet connection only establishes past 2-3 mins so I have a batch file with the following content to start up the llrnet servers: Code:
ping -n 300 127.0.0.1 > NUL Start /min C:\dc\llrnet-windows\Riesel\llrserver.exe ping -n 10 127.0.0.1 > NUL Start /min C:\dc\llrnet-windows\Sierpinski\llrserver.exe ping -n 10 127.0.0.1 > NUL Start /min C:\dc\llrnet-windows\NPLB\llrserver.exe ping -n 10 127.0.0.1 > NUL C:\dc\llrnet-windows\NPLB-port_80\llrserver.exe For now I only have shortcuts of the exe in the startup folder but I prefer to see them on 5 mins past the startup of the machine... Last fiddled with by em99010pepe on 2008-02-17 at 22:50 |
|
|
|
|
|
#2 | |
|
A Sunny Moo
Aug 2007
USA (GMT-5)
3·2,083 Posts |
Quote:
|
|
|
|
|
|
|
#3 |
|
I ♥ BOINC!
Oct 2002
Glendale, AZ. (USA)
3×7×53 Posts |
Try this Carlos
@echo off ping -n 300 127.0.0.1 > NUL Start /DC:\dc\llrnet-windows\Riesel /I "cmd /cSTART /min llrserver.exe" ping -n 10 127.0.0.1 > NUL Start /DC:\dc\llrnet-windows\Sierpinski /I "cmd /cSTART /min llrserver.exe ping -n 10 127.0.0.1 > NUL Start /DC:\dc\llrnet-windows\NPLB /I "cmd /cSTART /min llrserver.exe ping -n 10 127.0.0.1 > NUL Start /DC:\dc\llrnet-windows\NPLB-port_80 /I "cmd /cSTART /min llrserver.exe echo done! &echo. echo Sleeping for 5 seconds ping -n 5 127.0.0.1 >NUL |
|
|
|
|
|
#4 | |
|
Sep 2004
2·5·283 Posts |
Quote:
Carlos |
|
|
|
|
|
|
#5 | |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
183416 Posts |
Quote:
|
|
|
|
|
|
|
#6 |
|
Sep 2004
2·5·283 Posts |
|
|
|
|
|
|
#7 |
|
I ♥ BOINC!
Oct 2002
Glendale, AZ. (USA)
3·7·53 Posts |
Don't laugh, it works. This will show you all the primes in results.txt.
I can change it so that it takes a filename.ext from the command line if you would rather have that. sample output: user=Free-DC_Beyond [02/25/08 19:48:38] 861*2^316774-1 is prime! Done! @echo off cls for /f "tokens=1-5* delims=^= " %%a in ('type results.txt') do CALL :PARSE "%%a" "%%b" "%%c" "%%d" goto :END :PARSE if "%~1"=="user" set USER=%~2 if not "%~4"=="prime!" set DATETIME=%~1 %~2 if "%~4"=="prime!" echo user=%USER% & echo %DATETIME% & echo %~1 %~2 %~3 %~4 & set USER=& set DATETIME=&echo. goto :EOF :END echo Done! :EOF |
|
|
|
|
|
#8 |
|
Sep 2004
2·5·283 Posts |
Code:
@echo off ping -n 300 127.0.0.1 > NUL Start /DC:\dc\llrnet-windows\NPLB /I cmd /cSTART /min llrserver.exe echo done! &echo. echo Sleeping for 5 seconds ping -n 5 127.0.0.1 >NUL |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Batch File Issue, Perhaps | storm5510 | Programming | 3 | 2018-01-18 04:44 |
| Batch jobs using AWS Batch | GP2 | Cloud Computing | 1 | 2016-12-07 11:31 |
| 14e batch of WU's | pinhodecarlos | NFS@Home | 25 | 2015-07-25 17:50 |
| Got first batch of TF to 75 | Chuck | GPU to 72 | 23 | 2015-05-10 20:34 |
| Windows batch file for NFS - any help? | f1pokerspeed | Programming | 9 | 2013-12-24 18:21 |