Message boards :
Number crunching :
MAC HELP !!!
Message board moderation
Author | Message |
---|---|
Petit Soleil Send message Joined: 17 Feb 03 Posts: 1497 Credit: 70,934 RAC: 0 |
Hi everybody ! Sorry for posting this here I know it's off topic and I should have posted it in the help section but it will be faster here. When I want to run boinc I open terminal and type cd /boinc ENTER ./boinc ENTER What I would like to do is create a script file to launch boinc from the finder. I know I have to create a text file and save it with .command extension but I don't know what to write in the text file it self. I have tried cd /boinc ./boinc but it's not working...it would have been too easy. There's something missing to make it work on one line. Another thing I would like to do eventually is to lauch boinc at startup as a service. I would like it to run for all users (currently two) and invisible if possible. Meaning that I could see it running only by looking at the process view. If it's not possible I could at least put it in the "launch item" folder but it would run just on one users. Thanks for the help. Best regards Marc |
Coy Wagoner Send message Joined: 17 Apr 00 Posts: 2 Credit: 4,447 RAC: 0 |
well, i have a partial solution. it's partial because sometimes the script doesn't launch for me. #!/bin/sh cd /path to boinc folder ./boinc keep me posted. you could always download a functional script and just modify the code inside with textedit. for example, someone has some seti/folding scripts for download. i can't remember, but i think versiontracker lists them. good luck. not sure why mine doesn't work at times. |
idfitter Send message Joined: 13 Mar 00 Posts: 7 Credit: 302,676 RAC: 0 |
Slightly different here: I use a script file with: cd /path_to_boinc_folder ./boinc >> boinc.log & ps This redirects the output to a log file. The >> ensures it appends to, rather than replaces the log file, and the '&' tells it to run in the background. This means that it will carry on running even when you are logged out or another user is logged in. I stick the 'ps' line in, just to check that it launched OK. If you want to see the last few lines of the log, type: tail boinc.log or tail -n 50 boinc.log for the last 50 lines. If you need to stop boinc, type ps and note the PID number, then type kill nnnn where nnnn is the PID number |
Petit Soleil Send message Joined: 17 Feb 03 Posts: 1497 Credit: 70,934 RAC: 0 |
Thanks to both of you. I had adopted idfitter solution. it works fine. Best regards Marc |
©2024 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.