mersenneforum.org  

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

Closed Thread
 
Thread Tools
Old 2013-01-08, 01:21   #166
flashjh
 
flashjh's Avatar
 
"Jerry"
Nov 2011
Vancouver, WA

100011000112 Posts
Default

Quote:
Originally Posted by swl551 View Post
In red circle of the screenshot is where you put your GPU72 fetch utility and as long as it appends data to MISFITworkToDo.txt it will be fully integrated.

Beyond that there is nothing more I can do.
sed ... very familiar indeed ...

Edit: attached a manual to sed; there are several implementations but it's not too hard to make it do what you want

Edit2: @Dubslow
Quote:
Originally Posted by Dubslow View Post
sed -e s/http:\/\/v5.mersenne.org\//http:\/\/gpu72.com\//g
Were you implying that swl551 could just substitue all the mersenne.org with gpu72.com in his source?
Attached Files
File Type: zip sed_manual.zip (226.9 KB, 155 views)

Last fiddled with by flashjh on 2013-01-08 at 01:35
flashjh is offline  
Old 2013-01-08, 01:42   #167
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

1C3516 Posts
Default

Quote:
Originally Posted by flashjh View Post
Edit2: @Dubslow
Were you implying that swl551 could just substitue all the mersenne.org with gpu72.com in his source?
Something close to it. If chalsall implemented exactly the same interface as PrimeNet (or something very close to it), then what swl551 needs to do should be about that simple.

PS You can just google around for a sed manual (e.g. google `man sed`), there's many places to find it.

Last fiddled with by Dubslow on 2013-01-08 at 01:43
Dubslow is offline  
Old 2013-01-08, 01:46   #168
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

14508 Posts
Default

Quote:
Originally Posted by Dubslow View Post
Something close to it. If chalsall implemented exactly the same interface as PrimeNet (or something very close to it), then what swl551 needs to do should be about that simple.

PS You can just google around for a sed manual (e.g. google `man sed`), there's many places to find it.

Remember my current methodolgy for fetching and reporting to gimps is HTTP GETs through the public web site pages.

I already wrote the code to execute gpu72 login and POST with parameters to get work from its assignment page. It just never moved forward and died on the vine. (fully functional)
swl551 is offline  
Old 2013-01-08, 01:54   #169
flashjh
 
flashjh's Avatar
 
"Jerry"
Nov 2011
Vancouver, WA

1,123 Posts
Default

I figured out what was wrong with the exit codes. Windows can't read %errorlevel% directly, but with 'Exit' from a batch file, Windows can read the ExitCode as you coded it. However, I was using Exit /B # which didn't work. What I should have been using was just Exit #. So now MISFIT is showing the correct result and only displays the # if > 0.

For the final version, can you make it an option to display the Exit code if > 0? It's helpful to see the ExitCode while in development and for troubleshooting, but once I get everything working I won't need to see it anymore and it's actually kinda reduntant to continually see the error. The only thing I would actually need to know is if the external program failed to run at all, so if you can keep that as an option, that would be nice (though if it's been working fine all along, I wouldn't expect that to be an issue either).

Edit: You know I was just thinking that it would be a nice option to have MISFIT email the results of the external run each time. Is that something you could add also?

Last fiddled with by flashjh on 2013-01-08 at 01:59
flashjh is offline  
Old 2013-01-08, 02:00   #170
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

32816 Posts
Default

Quote:
Originally Posted by flashjh View Post
I figured out what was wrong with the exit codes. Windows can't read %errorlevel% directly, but with 'Exit' from a batch file, Windows can read the ExitCode as you coded it. However, I was using Exit /B # which didn't work. What I should have been using was just Exit #. So now MISFIT is showing the correct result and only displays the # if > 0.

For the final version, can you make it an option to display the Exit code if > 0? It's helpful to see the ExitCode while in development and for troubleshooting, but once I get everything working I won't need to see it anymore and it's actually kinda reduntant to continually see the error. The only thing I would actually need to know is if the external program failed to run at all, so if you can keep that as an option, that would be nice (though if it's been working fine all along, I wouldn't expect that to be an issue either).
"Alert on Non-Zero Exit Code".... in the next build.
swl551 is offline  
Old 2013-01-08, 02:02   #171
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

23·101 Posts
Default

Edit: You know I was just thinking that it would be a nice option to have MISFIT email the results of the external run each time. Is that something you could add also?[/QUOTE]

When the time comes for me to change employers you can expect a knock on your door!
swl551 is offline  
Old 2013-01-08, 02:04   #172
flashjh
 
flashjh's Avatar
 
"Jerry"
Nov 2011
Vancouver, WA

1,123 Posts
Default

Quote:
Originally Posted by swl551 View Post
Quote:
Edit: You know I was just thinking that it would be a nice option to have MISFIT email the results of the external run each time. Is that something you could add also?
When the time comes for me to change employers you can expect a knock on your door!
Just asking . If you get tired of the 'request' requests, just let me know.
Quote:
Originally Posted by swl551 View Post
"Alert on Non-Zero Exit Code".... in the next build.
Awesome!

Last fiddled with by flashjh on 2013-01-08 at 02:05
flashjh is offline  
Old 2013-01-08, 02:12   #173
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

23·101 Posts
Default

Quote:
Originally Posted by flashjh View Post
.... You know I was just thinking that it would be a nice option to have MISFIT email the results of the external run each time. Is that something you could add also?

Please specify an example email content to be sure I understand the request.
swl551 is offline  
Old 2013-01-08, 02:50   #174
flashjh
 
flashjh's Avatar
 
"Jerry"
Nov 2011
Vancouver, WA

1,123 Posts
Default

Quote:
Originally Posted by swl551 View Post
Please specify an example email content to be sure I understand the request.
I'm thinking something simple like:

MISFIT pre-assign command exit code: ###.

### is the return code which is already displayed. I'm going to expand my pre-assign program to offer several return codes so this will help me in case something doesn't work, but it will also be nice to see a '0' return code when it does run. Since this is almost completely automated now, this will give me an indication that everything is progressing as expected.

Last fiddled with by flashjh on 2013-01-08 at 02:51
flashjh is offline  
Old 2013-01-08, 03:50   #175
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

23×101 Posts
Default 2.3.0 beta 3 with Full Work Fetch

Quote:
Originally Posted by swl551 View Post
2.3.0 beta 3 with Full Work Fetch is ready for closed beta. Please contact me directly for a copy.
Re-posting as it got lost among other conversations.

screenshot of config
http://mersenneforum.org/attachment....6&d=1357591606
swl551 is offline  
Old 2013-01-08, 17:44   #176
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

23·101 Posts
Default

Quote:
Originally Posted by flashjh View Post
I'm thinking something simple like:

MISFIT pre-assign command exit code: ###.

### is the return code which is already displayed. I'm going to expand my pre-assign program to offer several return codes so this will help me in case something doesn't work, but it will also be nice to see a '0' return code when it does run. Since this is almost completely automated now, this will give me an indication that everything is progressing as expected.

FlashJH,
Please test 2.3.0 beta 4 with these changes.

No showing of non zero error codes at all. Only show if fatal error calling external appliation. Results and Errors can be emailed. See new configuration.

http://mersenneforum.org/misfit/

Last fiddled with by swl551 on 2013-01-08 at 17:44
swl551 is offline  
Closed Thread



Similar Threads
Thread Thread Starter Forum Replies Last Post
questions about misfit jschwar313 MISFIT 1 2016-02-02 00:32
Help with Misfit TheMawn MISFIT 18 2015-06-21 22:00
Misfit feature request. Aramis Wyler MISFIT 15 2015-03-04 21:13
MISFIT 2.9 swl551 MISFIT 44 2014-12-15 12:46
MISFIT for MFAKTx swl551 MISFIT 186 2014-02-05 23:27

All times are UTC. The time now is 08:28.


Tue Jul 27 08:28:31 UTC 2021 up 4 days, 2:57, 0 users, load averages: 1.85, 1.79, 1.76

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.