Folding @ Home Backgrounding Process


Forum: Other Help Topics
Topic: Folding @ Home Backgrounding Process
started by: tecker

Posted by tecker on Dec. 21 2005,22:13
Ok. I have been working on creating a set of scripts that will start folding at home. After trying the FInstall (Folding Install) i found it wouldn't work. So I came up with my own. Now im stuck. I start the FAH client (FAH502-Linux.exe) with the "&" arguement to make it a background and watch it start up. Then after it gets going i close the terminal. The only problem is that it doesnt stay running.

I found a solution that i thought would work so i created a script that with called simply executes the client. (Code below)

Code Sample

#!/bin/bash
./FAH502-Linux.exe >> Folding.log 2>&1 &


Now when i go into the directory and execute the script the Client starts up and begins running and if i close the window the program keeps going. SUCCESS! or so I thought.

Now come the odd part. When i call the script from the DSL menu the program starts then when i close the window the program quits. What Gives??

Can anyone shed some light?

Here is the setup:

DSL menu ==> script A
command in script A ==> script B
command in script B ==> FAH client

Above is Script B here is Script A
Code Sample

#!/bin/bash
cd ~/foldathome       //go into the folder of the folding client for proper placement and using of config
./FAH &                    // call the script to execute the client and put it in the background
read                        //Causes the window to pause so that one can watch the CPU level to see when core is running.


Upon hitting enter at the read command the CPU drops from 100% back to a 2%.

Any help for a script kiddie?

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.