mersenneforum.org Work Fetch - External Command
 Register FAQ Search Today's Posts Mark Forums Read

 2016-02-28, 10:05 #1 0PolarBearsHere     Oct 2015 2×7×19 Posts 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 and 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?
2016-02-28, 14:40   #2
swl551

Aug 2012
New Hampshire

14508 Posts

Quote:
 Originally Posted by 0PolarBearsHere 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 and 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

 2016-02-29, 04:03 #3 0PolarBearsHere     Oct 2015 2·7·19 Posts 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
 2016-03-03, 08:57 #4 petrw1 1976 Toyota Corona years forever!     "Wayne" Nov 2006 Saskatchewan, Canada 3×1,579 Posts Stopped Feb 24... .. Attached Thumbnails
 2016-03-03, 09:05 #5 petrw1 1976 Toyota Corona years forever!     "Wayne" Nov 2006 Saskatchewan, Canada 3·1,579 Posts more... ... Attached Thumbnails
 2016-03-03, 09:08 #6 petrw1 1976 Toyota Corona years forever!     "Wayne" Nov 2006 Saskatchewan, Canada 3·1,579 Posts working.... might be because system clock got set back to 2010 after last power outage....closer look at that tomorrow....
2016-03-03, 14:06   #7
swl551

Aug 2012
New Hampshire

14508 Posts

Quote:
 Originally Posted by petrw1 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

 2016-05-28, 10:52 #8 0PolarBearsHere     Oct 2015 26610 Posts 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
 2016-07-29, 21:06 #9 petrw1 1976 Toyota Corona years forever!     "Wayne" Nov 2006 Saskatchewan, Canada 3·1,579 Posts 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   Last fiddled with by petrw1 on 2016-07-29 at 21:27
2016-07-29, 21:44   #10
chalsall
If I May

"Chris Halsall"
Sep 2002

2×4,937 Posts

Quote:
 Originally Posted by petrw1 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?

 2016-07-29, 21:57 #11 petrw1 1976 Toyota Corona years forever!     "Wayne" Nov 2006 Saskatchewan, Canada 3·1,579 Posts 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?

 Similar Threads Thread Thread Starter Forum Replies Last Post LaurV GPU to 72 81 2020-12-02 05:17 Godzilla PARI/GP 30 2018-03-03 18:15 DuskFalls GPU Computing 5 2017-12-02 00:34 dragonbud20 MISFIT 2 2016-10-18 08:01 ewmayer Lounge 3 2009-02-04 20:51

All times are UTC. The time now is 19:12.

Fri Sep 24 19:12:04 UTC 2021 up 63 days, 13:41, 1 user, load averages: 2.34, 1.96, 1.82