site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Uniqs:
909
Share Topic
Posting?
Post a:
Post a:
Links: ·Distributed Computing FAQ ·Starfish Foldy Monitor ·Foldy Log Tracking ·usa2k's FAH-Tool
AuthorAll Replies


MstrBlstr
Status - Tired
Premium
join:2005-03-15
South Texas

4 edits

Foldy Monitoring Uploader Tools/Scripts

 ===========================================
F@H Stats Uploader
Version: 0.5 beta 4/13/2009
Authors: usa2k, MstrBlstr
Dependencies: Windows cmd.exe or command.exe.
cat.exe, grep.exe, sed.exe, tail.exe, cut.exe
command line utilities from
»www.unxutils.sourceforge.net/
Discussed here:
»[FP] For Jim...
cURL utility discussed here:
»Some links for usa2k....
OS: Windows XP, Vista
Tested on: Windows XP Pro SP3, Vista Business SP1
Purpose: To create the files needed for the
Monitor scripting engine, and
upload them to the FAH-Tool monitor site.
===========================================

UnxUtils.zip 509988 bytes
UnxUtils Needed For FAHUP.bat Script


Totally freeware package of unixutils ported for Windows, plus the cURL utility (also freeware).

I condensed it to only the tools that you would need, plus a few extra that are helpful in some cases.

Originally discussed at »Re: [FP-Ops] New Foldy6 -- Help Thread

---------------------

fahup.txt 8153 bytes
Click To View Script


fahup.bat 2513 bytes
Download in Zip Format
(fahup.bat.zip)


Originally discussed at »Re: [FP-Ops] New Foldy6 -- Help Thread

----------------------

I added the cut.exe to the UnxUtils, for future use with the script.

A couple of notes.

1. The site seems to be zipping the fahup.bat file, but is not changing the extension properly. So, if you download it, you get fahup.bat, but it is really a fahup.zip file. You have to manually change the extension to .zip before you will be able to unzip the file, and get to the actual fahup.bat file.

2. Read the comments carefully. I only enabled the part of the code that has to do with a single instance of FAH. The others are still there, just commented out.

3. I also commented out the cURL upload commands. As well as the entire F-M MOD. You just have to edit, then un-comment the parts that you want to use. There are directions in the comments if you read them carefully.

4. I kept this as short and simplistic as possible. It is just the basics, nothing fancy. There is a lot of room for improvement. But I figured the shorter it was, the simpler it would be for someone to edit what they needed to. I do plan on adding in some variables in the future. To make it even simpler to edit what needs to be.

5. I hope that it helps for now. I am sure that someone can come up with a much more sophisticated way of doing it. If I had more time, it would be better than it is.

Have fun, and good luck to all of you.


ehansman
He's Back - KIMI 2012
Premium,MVM
join:2002-01-21
Over Here
kudos:2

Ooooooooh.....new toys for me to try once the boxen gets here............
Thank you, MstrBlstr See Profile, for pulling this all together in one place!
--
Folding for cures - join us! »folding.stanford.edu (Team 4)



MstrBlstr
Status - Tired
Premium
join:2005-03-15
South Texas

4 edits

reply to MstrBlstr

Adding The UnxUtils Directory To The WIndows Path Variable.

This one seems to wobble off the tracks a bit.

»Re: [FP-Ops] New Foldy6 -- Help Thread

But the relevant parts to this section are below.

=================

said by Gargoyle:

Where should I place these tools? What I mean is ... what should the directory structure be? Does it matter?
said by MstrBlstr:

Doesn't really matter. I would just do something simple.

Mine is D:\UnxUtils. (My D: drive is what I use for my programs and scripts, in case I have to format the C: drive.)

The main thing is, you will have to edit your Windows environment PATH variable to include the wbin folder in the UnxUtils dir.

This one. UnxUtils\usr\local\wbin

Do you know how to do that?
said by Gargoyle:

No, I don't know how to edit the PATH variable. Point me in a direction.

I looked for help in the Windows Help and Support area, but couldn't find anything there.
said by sortofageek:

I'll point. See if this helps.

Start > Control Panel > System > Advanced Tab, Environment Variables button > System variables > highlight CLASSPATH > click the Edit button

Add a semicolon at the end of the path and then the path to your batch file?

I think this is what he is after, anyway.
said by sortofageek:

Naturally, you OK your way out and probably need to reboot to put the new info in memory at startup.
said by MstrBlstr:

Close, but he needs to add the path to the wbin folder in the UnxUtils dir. Not the path to the .bat file.

Also, it is the PATH or Path variable. I am not sure about the CLASSPATH. I always use the Path one.

The path variable addition is needed so Windows knows where to find the unixutil exe's to run them when called from the .bat file.

I don't have Vista, but I will see if I can come up with an XP Pro tutorial. Should just be minor differences.

Edit: Clarified the PATH variable statement a bit.
said by Gargoyle:

I looked around some more and can't figure this out.

So a tutorial for the "Windows impaired" (that would be me) is needed.
said by MstrBlstr:

I am not quite sure what is up with YouTube tonight, but it doesn't seem to want to give access to the tutorials that I uploaded hours ago. So, I will try it this way.

This is the one for editing your Windows Path variable.

Naturally, your path may actually be a bit diff. than mine. But it should give you the general idea.

For XP, so if Vista is much diff. just let me know.

Should be able to see it, as long as you have the flash player installed.

Adding A Windows Path Variable In XP
said by usa2k:

said by Gargoyle:

"Screencast.com is currently unavailable." .... but I figured out how to edit the PATH from usa2k's screenshot.

I added the following to the end of the current PATH:

;C:\UnxUtils\usr\local\wbin

==> Is that what I was supposed to do?
In his case that was correct, and he started testing the script.


MstrBlstr
Status - Tired
Premium
join:2005-03-15
South Texas

2 edits

Setting Up A Recurring Task With The Windows Task Scheduler.

--------------------Windows XP--------------------

Setting A Task To Run Multiple Times A Day In Windows XP.

Yeah, yeah... Laugh all you want... That was the intent, and the ONLY time that you will hear me speak.

------------------Windows Vista-------------------

Here is the discussion on running the fahup.bat as a scheduled task in Vista.

»Re: [FP-Ops] New Foldy6 -- Help Thread

Visual images would be nice.

Friday, 01-Jun 07:35:21 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 12.5 years online © 1999-2012 dslreports.com.
Most commented news this week
Hot Topics