 |
 |
Hiding BOINC/Terminal window in OS X 10.4
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2005
Status:
Offline
|
|
Is there a way to do this so I dont have terminal open as a Window? Can it be run as a background process?
I need to borg some macs but I need it to run in the background so there is no evidence that it is running
Also what client for mac should I be running? I have two 867mhz MDD Duals, one with 10.4.1 and one with 10.2.8.
Cheers Concorde
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Nov 2002
Location: Santa Barbara CA
Status:
Offline
|
|
To run as a background process you just have to add & to the end of the line:
./boinc &
Since once you do that you can't really tell what is going on, I pass the text output into a file:
./boinc > output.log &
Then you can check the output to see what is happening:
tail output.log
will just show the last lines.
tail -f output.log
will keep showing the last lines as they are added until you stop it.
If I really want to watch it constantly I just double click on the output.log file which opens Console. This uses less processor that tail -f (and the terminal) and you can scroll around to look at the whole file.
And then even though it doesn't seem to be that necessary in OSX, I always start the process using nohup:
nohup ./boinc > output.log &
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status:
Offline
|
|
I use
sudo /usr/bin/nohup /usr/bin/nice -20 ./boinc -redirectio &

|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2005
Status:
Offline
|
|
Okay im really confused now!
I currently have boinc_4.19_ppcG4-gcc3.5 starting using User Login Items, how do I add the code you have said?
Cheers Concorde
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status:
Offline
|
|
You can't start it as a Login item and have it backgrounded without writing an extra script.
The easiest thing to do is set up a cronjob to run at boot in the background.
The BoincDomPack has setup and crontab scripts, as well as start and stop for boinc.
I would put this in a file called boinctab (without the ----), if you use TextEdit to make the file, it needs to be plain text (and the file name will end up being boinctab.txt)
---------
@reboot cd /path/to/Boinc; /usr/bin/nohup ./boinc_4.19_ppcG4-gcc3.5 -redirectio &
---------
The /path/to/Boinc is the absolute path to the Boinc4 folder like /Users/you/Desktop/Boinc4
Then in Terminal, in the same directory where you saved the boinctab file, type
crontab boinctab
You now have boinc set to run at boot in the background.
There are other threads on here on setting up crontabs for boinc if you need to look around.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2005
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status:
Offline
|
|
For your boinctab put
@reboot cd /Users/jamescullingham/Boinc4 ; /usr/bin/nohup ./boinc_4.19_ppcG4-gcc3.5 -redirectio &
Then in Terminal do
crontab boinctab
and then Restart.
Boinc will now be running in the background all the time.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2005
Status:
Offline
|
|
Okay done that, terminal did this:
Restarted and nothing is showing up in Activity Manager, CPU use is under 10% on both processors.
This isnt fair
Concorde 
|
|
|
| |
|
|
|
 |
|
 |
|
Administrator 
Join Date: May 2000
Location: California
Status:
Offline
|
|
It is important to note that you should not install a distributed computing client on any machine without permission. If this is your box and you want to keep other users from messing with your client installs, then all is well. Same if you have permission from the sys admin.
If this isn't your box and you don't have permission, then you (and us, indirectly) can get into a lot of trouble. Should the box's owner report it to the project, the project can (and has done so in the past) zero out your account. They can disband a team too, though they've only done that when the entire team was cheating on SETI classic.
One school sys admin (!) was fired and sued by the school district a few years ago for running DC clients on his boxes - apparently without permission from ... well, I'm not clear who the sys admin needs to get permission from. The school's principal maybe. Apparently he was the system admin, but without the authority to administer the systems. Weird.
Anyway, they fired him, then asked for the cost of the electricity used the whole time - which came to a few thousand $bux.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jan 2002
Location: Mile High City
Status:
Offline
|
|
Originally Posted by Concorde Rules
Okay done that, terminal did this:
Restarted and nothing is showing up in Activity Manager, CPU use is under 10% on both processors.
This isnt fair
Concorde
mikkyo, doesn't Concorde need to run the BOINC app once from the terminal to set it up, and then run the chrontab?
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status:
Offline
|
|
Yes if his Boinc folder is not at all set up like in the picture.
Either manually run and setup boinc in that directory, or just copy in your account_XXXX.xml files to that folder.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2005
Status:
Offline
|
|
Originally Posted by reader50
It is important to note that you should not install a distributed computing client on any machine without permission. If this is your box and you want to keep other users from messing with your client installs, then all is well. Same if you have permission from the sys admin.
If this isn't your box and you don't have permission, then you (and us, indirectly) can get into a lot of trouble. Should the box's owner report it to the project, the project can (and has done so in the past) zero out your account. They can disband a team too, though they've only done that when the entire team was cheating on SETI classic.
One school sys admin (!) was fired and sued by the school district a few years ago for running DC clients on his boxes - apparently without permission from ... well, I'm not clear who the sys admin needs to get permission from. The school's principal maybe. Apparently he was the system admin, but without the authority to administer the systems. Weird.
Anyway, they fired him, then asked for the cost of the electricity used the whole time - which came to a few thousand $bux.
I've allready asked the owner and school of these iMacs, they will only be crunching when they are on or being used by students, they wont be left on overnight etc.
Okay weill try that, thanks!
Concorde
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2005
Status:
Offline
|
|
Okay, I removed all the last setups files and restarted BOINC from that location, I inputted all my codes etc it downloaded the work and started. I then closed terminal, started it back up again, typed "crontab boinctab", another command line came up like the first, I restarted and it hasnt worked
Setup Now:
http://www.thunder-keep.co.uk/site/h...ntab_help3.jpg
This is a real bugger
Concorde
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|