Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Community > Team MacNN > [DF] THE script and info thread. ask any and all DF questions here

[DF] THE script and info thread. ask any and all DF questions here
Thread Tools
Moderator Emeritus
Join Date: Dec 2000
Location: College Park, MD
Status: Offline
Reply With Quote
Sep 27, 2002, 03:16 PM
 
This is a script I wrote to use for starting and stopping it. This script can be put in cron.
You can put this script anywhere on the system, since it has the full paths in it.

#!/bin/sh
case "$1" in
start)
#path to client 1
cd /Users/scott/distribfold
./foldit &
#path to client 2, for a dual proc machine.
#uncomment the next 2 lines if dual proc
#cd /Users/scott/distribfold2
#./foldit &
;;
stop)
rm /Users/scott/distribfold/foldtrajlite.lock
#uncomment and change path if you have two clients (dual proc)
#rm /Users/scott/distribfold2/foldtrajlite.lock
;;
*)
echo "Usage: start|stop"
esac

exit 0
And here's the cron entry that can be used to stop it.

0 * * * * cd /Users/scott/; ./distribfold.sh start
Make sure to chmod +x the first script.
Also, change all paths to your correct paths.

This is what the last line of my foldit script looks like, for reference.
./foldtrajlite -f protein -n native -qt -df -rt
The -qt silences output, the -df will buffer more (otherwise it will stop at 30K buffered, incase of server outage), and the -rt uses more ram.
Those are what I use, there are others.

Hope these help, feel free to ask any questions
My website
Help me pay for college. Click for more info.
     
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status: Offline
Reply With Quote
Sep 27, 2002, 09:57 PM
 
Did you check out my scripts?
You can probably understand them.
I have starters, stoppers, autoconfig and start at boot etc.
You can probably almost use them as is on linux too.
Scripts and stuff
     
Grizzled Veteran
Join Date: Sep 2000
Location: London, UK
Status: Offline
Reply With Quote
Sep 30, 2002, 10:41 AM
 
Thanks for the scripts guys. I'm new to dfold, having come over from RC5, the startup script is exactly what I need for logging in to my G4 and setting dfold remotely

Originally posted by Scotttheking:
This is what the last line of my foldit script looks like, for reference.

./foldtrajlite -f protein -n native -qt -df -rt

The -qt silences output, the -df will buffer more (otherwise it will stop at 30K buffered, incase of server outage), and the -rt uses more ram.
Those are what I use, there are others.

Hope these help, feel free to ask any questions [/B]
Can anyone give a complete rundown on what all the modifiers are, e.g. what does the "-f protein -n native" bit mean? What are the others? (I've tried to find this info elsewhere but with no luck, so sorry if I've missed something really obvious...)

Thanxx,
     
Grizzled Veteran
Join Date: Sep 2000
Location: London, UK
Status: Offline
Reply With Quote
Sep 30, 2002, 02:04 PM
 
Originally posted by wulf:
Can anyone give a complete rundown on what all the modifiers are, e.g. what does the "-f protein -n native" bit mean? What are the others? (I've tried to find this info elsewhere but with no luck, so sorry if I've missed something really obvious...)
OK sorry, I read the full readme properly, which does explain the modifiers... still curious about the "-f protein -n native" tho...
     
Moderator Emeritus
Join Date: Dec 2000
Location: College Park, MD
Status: Offline
Reply With Quote
Sep 30, 2002, 02:17 PM
 
Originally posted by wulf:


OK sorry, I read the full readme properly, which does explain the modifiers... still curious about the "-f protein -n native" tho...
It is part of the client launch, and it's always used.
That's all I know.
My website
Help me pay for college. Click for more info.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:06 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2