Running Slackware, Problem Modifying BOINC Startup Script

Questions and Answers : Unix/Linux : Running Slackware, Problem Modifying BOINC Startup Script
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile 5 and a half of 13
Volunteer tester
Avatar

Send message
Joined: 21 Jan 02
Posts: 240
Credit: 21,261
RAC: 0
Message 156669 - Posted: 25 Aug 2005, 9:35:37 UTC

I was rooting through my ~/BOINC directory a couple of day ago, when I noticed that the default 'run_client.sh'
script doesn't output any stdout or stderror files that I could find. Also, when run from the command line it doesn't return control to the terminal.

I decided this was the ideal oppertunity to test by bash scripting skills, which I soon discovered were non-existant :D

Anyway, I am running the latest Slackware-current, Kernel 2.4.31 BOINC 4.43 and Seti 4.02

Here is the script in question, I managed to get it to write stdout (and hopefully stderror) to file but it still won't return to the terminal. The solution is something blindingly obvious I'm sure :)


cd "/home/andrew/BOINC" && ./boinc >> /home/andrew/BOINC/output 2>> /home/andrew/BOINC/errors


It should be all one line.

So much for my 1337n355 ;D
Need help? Check out the excellent Unofficial BOINC-Wiki!
'We are the BOINC. Prepare to be assimilated.'
ID: 156669 · Report as offensive
Profile David Stites
Volunteer tester

Send message
Joined: 22 Jul 99
Posts: 286
Credit: 10,113,361
RAC: 0
United States
Message 157151 - Posted: 26 Aug 2005, 2:29:49 UTC
Last modified: 26 Aug 2005, 2:44:25 UTC


cd "/home/andrew/BOINC" && ./boinc >> /home/andrew/BOINC/output 2>> /home/andrew/BOINC/errors


To background any process in bash simply add '&' to the end of the command.

cd "/home/andrew/BOINC" && ./boinc >> /home/andrew/BOINC/output 2>> /home/andrew/BOINC/errors &

This will give you your terminal back.

This is what I use in run_client

cd /home/seti/boinc
./boinc -allow_remote_gui_rpc >/dev/null 2>>/home/seti/boinc/stderrdae.txt &
cd -

Three lines.


Good luck,



David Stites
Pullman, WA USA
ID: 157151 · Report as offensive
Profile 5 and a half of 13
Volunteer tester
Avatar

Send message
Joined: 21 Jan 02
Posts: 240
Credit: 21,261
RAC: 0
Message 157358 - Posted: 26 Aug 2005, 8:45:49 UTC - in response to Message 157151.  


cd "/home/andrew/BOINC" && ./boinc >> /home/andrew/BOINC/output 2>> /home/andrew/BOINC/errors


To background any process in bash simply add '&' to the end of the command.

cd "/home/andrew/BOINC" && ./boinc >> /home/andrew/BOINC/output 2>> /home/andrew/BOINC/errors &

This will give you your terminal back.

This is what I use in run_client

cd /home/seti/boinc
./boinc -allow_remote_gui_rpc >/dev/null 2>>/home/seti/boinc/stderrdae.txt &
cd -

Three lines.


Good luck,




thanks a million - they should make your script the default :D
Need help? Check out the excellent Unofficial BOINC-Wiki!
'We are the BOINC. Prepare to be assimilated.'
ID: 157358 · Report as offensive

Questions and Answers : Unix/Linux : Running Slackware, Problem Modifying BOINC Startup Script


 
©2025 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.