Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Folding @ Home Backgrounding Process, FAH exits after closing spawining window< Next Oldest | Next Newest >
tecker Offline





Group: Members
Posts: 72
Joined: June 2004
Posted: Dec. 21 2005,22:13 QUOTE

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?


--------------
People laugh because I have linux on a cd with me.

I laugh as the pay me for using that disk to recover their precious windows.
Back to top
Profile PM WEB 
0 replies since Dec. 21 2005,22:13 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Folding @ Home Backgrounding Process

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code