mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > PrimeNet > MISFIT

Reply
 
Thread Tools
Old 2016-02-28, 10:05   #1
0PolarBearsHere
 
0PolarBearsHere's Avatar
 
Oct 2015

2·7·19 Posts
Default Work Fetch - External Command

I can't seem to get this working.

Essentially I have a .bat file that writes a list of assignments to a file of my choice (in this case the Misfitworktodo file). I'm picking a different range to what primenet would give me normally, so this is some code (which I know works since I can run it manually) to do that.

Essentially what I want to do is have it keep a little over an hours work on hand. I know how many assignments to fetch for an hours work so this is in the .bat file.

In the work mgmt tab, I have the first two set as 1000GHz days, which, since I'm only getting a small number of assignments, should drain the whole file (if it exists) every time the stats run (every 5 minutes).

In the work fetch tab, I have selected Execute external command, check every 1 hour, and fetch when misfitworktodo drops below 1000GHzDays. As with the work management, it will never get this high so it should run every time. i.e. once per hour.

So theoretically, once an hour, it will run the command, put the results into the misfit file, wait until the stats run (up to 5 minutes later), and then send them across to mfaktc (via worktodo.add).

I leave the argument blank, and in the CMD field I've tried both
run <path to .bat file>
and
<path to .bat file>
and neither seem to run the bat file (i.e. the number of tasks never increase)

At the moment, I just have the .bat file writing to worktodo.add and run it a few times to build up a supply (so I know the bat file works).

Is there something I'm missing?
0PolarBearsHere is offline   Reply With Quote
Old 2016-02-28, 14:40   #2
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

2·13·31 Posts
Default

Quote:
Originally Posted by 0PolarBearsHere View Post
I can't seem to get this working.

Essentially I have a .bat file that writes a list of assignments to a file of my choice (in this case the Misfitworktodo file). I'm picking a different range to what primenet would give me normally, so this is some code (which I know works since I can run it manually) to do that.

Essentially what I want to do is have it keep a little over an hours work on hand. I know how many assignments to fetch for an hours work so this is in the .bat file.

In the work mgmt tab, I have the first two set as 1000GHz days, which, since I'm only getting a small number of assignments, should drain the whole file (if it exists) every time the stats run (every 5 minutes).

In the work fetch tab, I have selected Execute external command, check every 1 hour, and fetch when misfitworktodo drops below 1000GHzDays. As with the work management, it will never get this high so it should run every time. i.e. once per hour.

So theoretically, once an hour, it will run the command, put the results into the misfit file, wait until the stats run (up to 5 minutes later), and then send them across to mfaktc (via worktodo.add).

I leave the argument blank, and in the CMD field I've tried both
run <path to .bat file>
and
<path to .bat file>
and neither seem to run the bat file (i.e. the number of tasks never increase)

At the moment, I just have the .bat file writing to worktodo.add and run it a few times to build up a supply (so I know the bat file works).

Is there something I'm missing?

I just walked a test through the debugger where I set the external fetching command to notepad and the argument to dummy.txt and MISFIT launched notepad looking for file dummy.txt.

So the external fetch interface works fine. See screenshot where putting in dummy external command value produces the expected error from within MISFIT.

Screenshots from you could be helpful.

Thanks

Scott
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	206
Size:	86.9 KB
ID:	13971  
swl551 is offline   Reply With Quote
Old 2016-02-29, 04:03   #3
0PolarBearsHere
 
0PolarBearsHere's Avatar
 
Oct 2015

1000010102 Posts
Default

Thanks. I'll give it another test and get some screenshots when I get home.

Last fiddled with by 0PolarBearsHere on 2016-02-29 at 04:03
0PolarBearsHere is offline   Reply With Quote
Old 2016-03-03, 08:57   #4
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

10001010010002 Posts
Default Stopped Feb 24...

..
Attached Thumbnails
Click image for larger version

Name:	misfit.png
Views:	207
Size:	22.5 KB
ID:	13988  
petrw1 is offline   Reply With Quote
Old 2016-03-03, 09:05   #5
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

23×7×79 Posts
Default more...

...
Attached Thumbnails
Click image for larger version

Name:	misfit2.png
Views:	228
Size:	29.9 KB
ID:	13989  
petrw1 is offline   Reply With Quote
Old 2016-03-03, 09:08   #6
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

442410 Posts
Default working....

might be because system clock got set back to 2010 after last power outage....closer look at that tomorrow....
petrw1 is offline   Reply With Quote
Old 2016-03-03, 14:06   #7
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

2·13·31 Posts
Default

Quote:
Originally Posted by petrw1 View Post
might be because system clock got set back to 2010 after last power outage....closer look at that tomorrow....
I have no idea on this one. Let me know if it continues.

Scott
swl551 is offline   Reply With Quote
Old 2016-05-28, 10:52   #8
0PolarBearsHere
 
0PolarBearsHere's Avatar
 
Oct 2015

1000010102 Posts
Default

Just to let you all know. I've worked out why it wasn't working.
I was trying to run the bat file using the cmd entry, rather than as an argument for cmd.exe
working config
-----
CMD:
Code:
C:\Windows\System32\cmd.exe
ARGS:
Code:
/c <path to bat file>
0PolarBearsHere is offline   Reply With Quote
Old 2016-07-29, 21:06   #9
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

23·7·79 Posts
Default Error during fetch

...

I even rebooted.... no change.
I can obviously access the internet since I am sending this from the same PC

PS Changed it to fetch from GIMPS and it works....but not from GPU72
Attached Thumbnails
Click image for larger version

Name:	misfit3.png
Views:	169
Size:	23.6 KB
ID:	14707  

Last fiddled with by petrw1 on 2016-07-29 at 21:27
petrw1 is offline   Reply With Quote
Old 2016-07-29, 21:44   #10
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

928610 Posts
Default

Quote:
Originally Posted by petrw1 View Post
PS Changed it to fetch from GIMPS and it works....but not from GPU72
OK... I updated the SSL certificate on GPU72.com yesterday. Perhaps this was the issue.

Scott, are you caching the certificate?
chalsall is online now   Reply With Quote
Old 2016-07-29, 21:57   #11
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

442410 Posts
Default

The vote against this theory...is I have 2 PCs with GPUs both fetching work from GPU72 via MisFit. The other works.

The only difference is that the one that stopped fetching successfully (on the 27th) is Win-7 the other has been upgraded to Win-10 a few months ago. Do they get/check certs differently?
petrw1 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic fetch of Trial Factoring work for GPU mfakt* LaurV GPU to 72 79 2020-10-22 17:01
Pari gp Command divisors() ? Godzilla PARI/GP 30 2018-03-03 18:15
Automatic submit results + fetch assignments for mfaktc? DuskFalls GPU Computing 5 2017-12-02 00:34
unable to fetch assignments dragonbud20 MISFIT 2 2016-10-18 08:01
Need an extra brain? Try an external one! ewmayer Lounge 3 2009-02-04 20:51

All times are UTC. The time now is 04:27.

Sat Oct 24 04:27:09 UTC 2020 up 44 days, 1:38, 1 user, load averages: 0.87, 1.12, 1.27

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.