mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   GPU to 72 (https://www.mersenneforum.org/forumdisplay.php?f=95)
-   -   Automatic Submission Spider for Workers... (https://www.mersenneforum.org/showthread.php?t=16334)

chalsall 2012-06-18 20:04

[QUOTE=kracker;302483]You're right, I use strawberry perl, just install, reboot, edit the submission script to your needs, and run :P (it sets associations, if you use it that way.)[/QUOTE]

Very cool!!! Thanks -- I didn't know about Strawberry. I'll add a mention to it on the spider page.

One thing though... I found that just letting the script run with the default association (perl.exe) caused a DOS window to pop up for a split second. If, however, you use "wperl.exe submit_spider.pl" in the WinBlows Task Scheduler, no such window appears.

kracker 2012-06-18 23:42

[QUOTE=chalsall;302616]Very cool!!! Thanks -- I didn't know about Strawberry. I'll add a mention to it on the spider page.

One thing though... I found that just letting the script run with the default association (perl.exe) caused a DOS window to pop up for a split second. If, however, you use "wperl.exe submit_spider.pl" in the WinBlows Task Scheduler, no such window appears.[/QUOTE]

Hmm... strange. I usually never use it that way, but it works. :loco:

P.S.: I use a script that automatically launches that when it detects a results.txt in one or two of my selected directories (in my script)

flashjh 2012-06-19 01:15

[QUOTE=kracker;302623]Hmm... strange. I usually never use it that way, but it works. :loco:

P.S.: I use a script that automatically launches that when it detects a results.txt in one or two of my selected directories (in my script)[/QUOTE]
Mind posting your script? I'd be curious to see it.

kracker 2012-06-19 02:19

[QUOTE=flashjh;302631]Mind posting your script? I'd be curious to see it.[/QUOTE]

It's a bat script... (only windows)... and the script is rough.... give me...a...few... :help::unsure:

:missingteeth:

How many "workers" should I make it support? (max)

flashjh 2012-06-19 03:09

1 Attachment(s)
[QUOTE=kracker;302635]It's a bat script... (only windows)... and the script is rough.... give me...a...few... :help::unsure:

:missingteeth:

How many "workers" should I make it support? (max)[/QUOTE]

I run up to 25 TF workers at a time, but you can just get me started and I can expand as necessary. Don't worry about the 'roughness', I use many bat files myself, and I know they can be that way. Right now I use a script that runs every hour, collects everything and then submits if there is something to submit. I was just wondering how you check for a results file (or how often)?

I attached my submit.bat file (rename to .bat), so you can see it. If you have any questions, let me know. Windows Task Scheduler just runs submit.bat every hour.

BTW - I use ActivePerl

kracker 2012-06-19 14:01

[QUOTE=flashjh;302642]I run up to 25 TF workers at a time, but you can just get me started and I can expand as necessary. Don't worry about the 'roughness', I use many bat files myself, and I know they can be that way. Right now I use a script that runs every hour, collects everything and then submits if there is something to submit. I was just wondering how you check for a results file (or how often)?

I attached my submit.bat file (rename to .bat), so you can see it. If you have any questions, let me know. Windows Task Scheduler just runs submit.bat every hour.

BTW - I use ActivePerl[/QUOTE]


Ah... your's look much better than mine... I'll add ethernet support.

P.S.: MY script is simple really, maybe too simple... what it does is looks for a "results.txt in several directories every x often, then if it finds it it executes the submit perl script.... then all over again...

kracker 2012-06-21 16:58

1 Attachment(s)
Oh, I forgot to post it....

[Code]
@echo off
### Settings.
### \ or /. C:/blah/blah or C:\blah\blah.
set sh=\
### Set title. Useless...
set title=
### set mfak* dirs here.
set dir1=C:\xxxx\x\mfakto
set dir2=C:\xxxx\x\mfakto-2
### Define time between checks in seconds.
set time=500
### End Settings.
title %title%
cls
Goto 1
:loop
timeout /t %time% /nobreak > NUL
:1
IF EXIST %dir1%%sh%results.txt cd %dir1%&&perl %dir1%%sh%submit.pl
:2
IF EXIST %dir2%%sh%results.txt cd %dir2%&&perl %dir2%%sh%submit.pl
:3
IF EXIST %dir3%%sh%results.txt perl %dir3%%sh%submit.pl
:4
IF EXIST %dir4%%sh%results.txt perl %dir4%%sh%submit.pl
goto loop
:kitchensink
#set /p dir3=
#set /p dir4=
[/Code]make SURE perl.exe is in %path%, AND don't say anything about the background picture.:boxer:

Dubslow 2012-06-21 17:44

[QUOTE=kracker;302875] AND don't say anything about the background picture.:boxer:[/QUOTE]
KITTY!!!!!
:cat:
:kitten:

kracker 2012-06-21 17:45

[QUOTE=Dubslow;302877]KITTY!!!!!
:cat:
:kitten:[/QUOTE]

Oh shut u.. Nevermind. :rant:

Dubslow 2012-06-21 18:05

[QUOTE=kracker;302878]Oh shut u.. Nevermind. :rant:[/QUOTE]

But KITTY!!!

[url]https://encrypted-tbn2.google.com/images?q=tbn:ANd9GcQWiceoM4HgOUxoZuK4PCCaj3idJTMS5FET7BJsDJbA2_wHZTBnaw[/url]
[url]https://encrypted-tbn1.google.com/images?q=tbn:ANd9GcRWQwHONGVgO7IT5Y06UeKCKPpGB2cy-_nIwAni33N3uu9Up6agEg[/url]
[url]https://encrypted-tbn0.google.com/images?q=tbn:ANd9GcTDiIL0S0btgTeH3YiRABseURZxucw2J3KWJ5F1TyJt-TYG9SD4[/url]
[url]https://encrypted-tbn1.google.com/images?q=tbn:ANd9GcR2KsO34mjiwNiyVeKcRU8NdzDf4kE77EGBz4BwkXLwKhY2KBgupQ[/url]

kracker 2012-06-21 18:16

[QUOTE=Dubslow;302882]But KITTY!!!

[URL]https://encrypted-tbn2.google.com/images?q=tbn:ANd9GcQWiceoM4HgOUxoZuK4PCCaj3idJTMS5FET7BJsDJbA2_wHZTBnaw[/URL]
[URL]https://encrypted-tbn1.google.com/images?q=tbn:ANd9GcRWQwHONGVgO7IT5Y06UeKCKPpGB2cy-_nIwAni33N3uu9Up6agEg[/URL]
[URL]https://encrypted-tbn0.google.com/images?q=tbn:ANd9GcTDiIL0S0btgTeH3YiRABseURZxucw2J3KWJ5F1TyJt-TYG9SD4[/URL]
[URL]https://encrypted-tbn1.google.com/images?q=tbn:ANd9GcR2KsO34mjiwNiyVeKcRU8NdzDf4kE77EGBz4BwkXLwKhY2KBgupQ[/URL][/QUOTE]

I will not comment. :furious::rant::furious::rant:
:sm88:

[SIZE=1][COLOR=Gray]P.S.: I do love kitties.[/COLOR][/SIZE]


All times are UTC. The time now is 10:22.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.