![]() |
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? |
1 Attachment(s)
[QUOTE=0PolarBearsHere;427677]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?[/QUOTE] 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 |
Thanks. I'll give it another test and get some screenshots when I get home.
|
Stopped Feb 24...
1 Attachment(s)
..
|
more...
1 Attachment(s)
...
|
working....
might be because system clock got set back to 2010 after last power outage....closer look at that tomorrow....
|
[QUOTE=petrw1;427995]might be because system clock got set back to 2010 after last power outage....closer look at that tomorrow....[/QUOTE]
I have no idea on this one. Let me know if it continues. Scott |
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[/CODE] ARGS: [CODE]/c <path to bat file>[/CODE] |
Error during fetch
1 Attachment(s)
...
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 |
[QUOTE=petrw1;439014]PS Changed it to fetch from GIMPS and it works....but not from GPU72[/QUOTE]
OK... I updated the SSL certificate on GPU72.com yesterday. Perhaps this was the issue. Scott, are you caching the certificate? |
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? |
| All times are UTC. The time now is 08:21. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.