  MstrBlstr Status - Tired Premium join:2005-03-15 South Texas
2 edits | Some links for usa2k....
Was just messing around doing some searches, and I came across a few things that might help usa2k in some of the current stuff that he has going on.
Not sure if any of them will help, but I don't see the harm in posting them here for him to take a look at.
Gonna dig them up and post them in a bit. |
|
  MstrBlstr Status - Tired Premium join:2005-03-15 South Texas
2 edits | cURL
curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, TFTP, HTTP, HTTPS, TELNET, DICT, FILE and LDAP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos...), file transfer resume, proxy tunneling and a busload of other useful tricks.
Use the cURL command line tool or use libcurl from within your own programs.
PHP users! Look for the PHP/CURL binding!
IIRC, you were trying to do something in PHP, so this may be of use, as it works with PHP.
Also, it has a long list of binaries for different OS's that it works on as well. Look at the download page for the list. |
|
  MstrBlstr Status - Tired Premium join:2005-03-15 South Texas
3 edits | reply to MstrBlstr OK, IIRC, you also said somewhere that the Windows Task Scheduler would only schedule a task to be run once a day. It has been some time since I used task scheduler. But I know that it CAN run tasks more than once a day, as I have done it before. IE... every hour on the hour. Just don't remember off the top of my head how I did it. Would have to set up a task and see if I could remember how I did it.
But I did run across this, on an unrelated search:
For instructions on using scheduled tasks, including repeating more than once a day, go here.
Don't know if it just my browser (FF), or if it is the site. But I can't seem to get it to show the Using Advanced Options in Scheduled Tasks part of the page. But, I am almost certain that is were you would be able to set a task to run miltiple times as day. IE... Every hour.
EDIT -- OK, the first link will not show it, but the second link will.
I found this, and it refreshed my memory a bit. 
quote: You cannot schedule a task so that it repeats in an interval less than one day; however, you can do this in the Properties dialog box: 1. Click the Schedule tab, and then click Advanced. 2. Click to select the Repeat task check box, and then specify the number of minutes or hours in which you want the task to be repeated.
|
|
  usa2k Please PRAY for Rebekah Premium,MVM join:2003-01-26 Canton, MI clubs: | Re: Some links for usa2k....
Good points!
I knew about curl, but never looked close at it. I also missed the advanced settings. I'll check that out -- Thanks!  |
|
  usa2k Please PRAY for Rebekah Premium,MVM join:2003-01-26 Canton, MI clubs:
·VOIPo
·WOW Internet and C..
·Broadvox Direct
| reply to MstrBlstr C:\blades\curl-7.16.0>curl » 192.168.0.101/1/unitinfo.txtCurrent Work Unit ----------------- Name: p2129_ww2129 Download time: November 7 01:47:19 Due time: February 15 01:47:19 Progress: 89% [||||||||__] :) |
|
  MstrBlstr Status - Tired Premium join:2005-03-15 South Texas | Is that the stand alone program, or libcurl? Does it download the file, or just display what is in it? |
|
  usa2k Please PRAY for Rebekah Premium,MVM join:2003-01-26 Canton, MI clubs:
·VOIPo
·WOW Internet and C..
·Broadvox Direct
1 edit | Re: Some links for usa2k.... Thanks MstrBlstr :)
It is the standalone  »curl.haxx.se/dlwiz/?type=bin&os=···000%2FXP Non-ssl version
I'll show a working bat file now its perfected. (Destinations and passwords changed)
C:\blades\curl-7.16.0\upload.bat
REM: Initial bat file for Foldy2 Team Helix FP_Foldinator REM: 11-11-2006, usa2k.
cd C:\blades\curl-7.16.0
REM: use registry static IPs for consistency with TFTP32 server curl -m 3-o 2-01-unitinfo.txt http://192.168.0.100/1/unitinfo.txt curl -m 3 -o 2-02-unitinfo.txt http://192.168.0.101/1/unitinfo.txt curl -m 3 -o 2-03-unitinfo.txt http://192.168.0.102/1/unitinfo.txt
echo append club details echo Fahusername: TH_Foldinator >> 2-01-unitinfo.txt echo Fahteamid: 4 >> 2-01-unitinfo.txt
echo append club details echo Fahusername: TH_Foldinator >> 2-02-unitinfo.txt echo Fahteamid: 4 >> 2-02-unitinfo.txt
echo append club details echo Fahusername: TH_Foldinator >> 2-03-unitinfo.txt echo Fahteamid: 4 >> 2-03-unitinfo.txt
echo verbose to see all the ftp action including user:passwd curl -v -m 3 -T 2-01-unitinfo.txt -u user:passwd ftp://ftp.website.com/ curl -v -m 3 -T 2-02-unitinfo.txt -u user:passwd ftp://ftp.website.com/ curl -v -m 3 -T 2-03-unitinfo.txt -u user:passwd ftp://ftp.website.com/
Very, very, very simple  EDIT: added the "-m 3" for a 3 second timeout. Now to get it using the XP scheduler with advanced options! (done)
Aint it cool! There is life for DOS.
-- Jim -- USA2K SEE: |DCWU |FP |FAH | REBEKAH FWD, Vonage since 01/2003 |
|
  usa2k Please PRAY for Rebekah Premium,MVM join:2003-01-26 Canton, MI clubs:
·VOIPo
·WOW Internet and C..
·Broadvox Direct
1 edit | Re: Some links for usa2k.... Thanks MstrBlstr :)

Set daily and instead of 1 hour like above, set to 24 hours.
I set this to every 5 minutes just because I really want to work it for a bit.
(I like that DOS window flashing details that vanish quick! ) |
|
  usa2k Please PRAY for Rebekah Premium,MVM join:2003-01-26 Canton, MI clubs: | reply to MstrBlstr Re: Some links for usa2k....
Which files do EMIII use?
If unitinfo.txt and FAHlog.txt are it, I could get them to transfer into separate dirs so EMIII can look at them too. |
|
  usa2k Please PRAY for Rebekah Premium,MVM join:2003-01-26 Canton, MI clubs: | Re: Some links for usa2k....
Also I can get this page from the LINUX blades »192.168.0.100/1/MyFolding.html |
|
  usa2k Please PRAY for Rebekah Premium,MVM join:2003-01-26 Canton, MI clubs:
·VOIPo
·WOW Internet and C..
·Broadvox Direct
| reply to MstrBlstr Re: Some links for usa2k....
Here was a problem.
A power glitch made the TV dim for a moment.
The router lost its connection. The diskless blades booted so fast the did not get through to Stanford to start the client back up. You could access each unitinfo.txt But no client was running. An error would occur trying to access FAHlog.txt
Further complications, the router had trouble getting a wan IP.
So each consecutive power cycle failed.
Its all running now though. ... -- Jim -- USA2K SEE: |DCWU |FP |FAH | REBEKAH FWD, Vonage since 01/2003 |
|
  MstrBlstr Status - Tired Premium join:2005-03-15 South Texas
| reply to usa2k Re: Some links for usa2k.... Thanks MstrBlstr :)
said by usa2k :It is the standalone  » curl.haxx.se/dlwiz/?type=bin&os=···000%2FXPNon-ssl version I'll show a working bat file now its perfected. (Destinations and passwords changed) C:\blades\curl-7.16.0\upload.bat
REM: Initial bat file for Foldy2 Team Helix FP_Foldinator REM: 11-11-2006, usa2k.
cd C:\blades\curl-7.16.0
REM: use registry static IPs for consistency with TFTP32 server curl -m 3-o 2-01-unitinfo.txt http://192.168.0.100/1/unitinfo.txt curl -m 3 -o 2-02-unitinfo.txt http://192.168.0.101/1/unitinfo.txt curl -m 3 -o 2-03-unitinfo.txt http://192.168.0.102/1/unitinfo.txt
echo append club details echo Fahusername: TH_Foldinator >> 2-01-unitinfo.txt echo Fahteamid: 4 >> 2-01-unitinfo.txt
echo append club details echo Fahusername: TH_Foldinator >> 2-02-unitinfo.txt echo Fahteamid: 4 >> 2-02-unitinfo.txt
echo append club details echo Fahusername: TH_Foldinator >> 2-03-unitinfo.txt echo Fahteamid: 4 >> 2-03-unitinfo.txt
echo verbose to see all the ftp action including user:passwd curl -v -m 3 -T 2-01-unitinfo.txt -u user:passwd ftp://ftp.website.com/ curl -v -m 3 -T 2-02-unitinfo.txt -u user:passwd ftp://ftp.website.com/ curl -v -m 3 -T 2-03-unitinfo.txt -u user:passwd ftp://ftp.website.com/
Very, very, very simple  EDIT: added the "-m 3" for a 3 second timeout. Now to get it using the XP scheduler with advanced options!  (done) Aint it cool! There is life for DOS. Nice work on the bat file.
Question: Can cURL actually download the clinet.cfg file to the local HDD?
If if it can, then there is a bit of room for expansion on your current bat file. Not that it is really needed, but it would preserve the feature that the foldy uploader has, of checking that the username and team # were set correctly for each client.
If cURL is not able to download the file to the local HDD, then there is another similar program that can do this. Then you just use the FIND command to pull the [settings], username, and team # lines, and append those to your foldy files that you are going to upload.
Adds a bit to the batch file. But is not that difficult, if you want to preserve the "checking" feature that the foldy uploader has.
Of course, once Starfish re-works the uploader this all will, most likely, be an obsolete method of doing things. But it is fun having a go and it, and learning in the process. At least it always has been for me. |
|
  MstrBlstr Status - Tired Premium join:2005-03-15 South Texas
| reply to usa2k Re: Some links for usa2k....
said by usa2k :Which files do EMIII use? If unitinfo.txt and FAHlog.txt are it, I could get them to transfer into separate dirs so EMIII can look at them too. Knowing Larry, the little bit that I do. I would assume that it is bit more complicated than just those two files, but you would have to ask him to be sure.
This does, however, answer my question in the previous thread. I am going to assume, that since you can copy those two files to a dir. on the local HHD, that you could also copy the client.cfg file via the same method?
If I am correct in my assumption. cURL reads the client.cfg file on the blade, and then you can just output that info to a file on the local HDD. Correct? At least in theory, it should work that way.
That would negate having to "actually" have another program that would "download" the file to the local drive. As it accomplishes the same thing, with the same ending result. |
|
  usa2k Please PRAY for Rebekah Premium,MVM join:2003-01-26 Canton, MI clubs:
·VOIPo
·WOW Internet and C..
·Broadvox Direct
2 edits | reply to MstrBlstr Re: Some links for usa2k.... Thanks MstrBlstr :)
said by MstrBlstr :Question: Can cURL actually download the client.cfg file to the local HDD? Yes
I'll post when I get home the test script.
I seem to still have trouble getting EMIII to work though.
|
|
  usa2k Please PRAY for Rebekah Premium,MVM join:2003-01-26 Canton, MI clubs:
·VOIPo
·WOW Internet and C..
·Broadvox Direct
| Re: Some links for usa2k.... Thanks MstrBlstr :)
 |
|
  MstrBlstr Status - Tired Premium join:2005-03-15 South Texas
2 edits | reply to usa2k Re: Some links for usa2k.... Thanks MstrBlstr :)
Hrmm... I think that EMIII needs to access the files in real time, so it may mess things up a bit if you are only pulling down the files every so often.
You would probably be better off using something like FahMon, or FAHLogStats.net, that really only need to read the FAHlog.txt file to get its readings. But even then, things would only update as often as you are pulling down the actual client files.
Edit -- Taking a quick look, it seems that FAHLogStats.net may be the better choice. As it appears to support a URL pointing to the FAHlog.txt file. You will have to read up and see if I am correct. |
|
  MstrBlstr Status - Tired Premium join:2005-03-15 South Texas
| reply to usa2k
quote: curl -o 1\FAH500-Console.exe »192.168.0.100/1/FAH502-Linux.exe
You would not need this for any of the monitors that I know of.
Is there a reason that you changed it from the Linux to Windows filename? |
|
  usa2k Please PRAY for Rebekah Premium,MVM join:2003-01-26 Canton, MI clubs:
·VOIPo
·WOW Internet and C..
·Broadvox Direct
| said by MstrBlstr : quote: curl -o 1\FAH500-Console.exe »192.168.0.100/1/FAH502-Linux.exe
You would not need this for any of the monitors that I know of. Is there a reason that you changed it from the Linux to Windows filename? Yes EMIII offers to locate the windows file name. Otherwise I don't believe EMIII had a use for the program. -- Jim -- USA2K SEE: |DCWU |FP |FAH | REBEKAH FWD, Vonage since 01/2003 |
|
  usa2k Please PRAY for Rebekah Premium,MVM join:2003-01-26 Canton, MI clubs: | I'll have yo look at this again after work ... »forum.folding-community.org/ftopic11700.html |
|
  usa2k Please PRAY for Rebekah Premium,MVM join:2003-01-26 Canton, MI clubs:
·VOIPo
·WOW Internet and C..
·Broadvox Direct
| Re: Some links for usa2k.... Thanks MstrBlstr :)
»sourceforge.net/project/showfile···id=86214 |
|