Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Community > Team MacNN > Hiding BOINC/Terminal window in OS X 10.4

Hiding BOINC/Terminal window in OS X 10.4
Thread Tools
Fresh-Faced Recruit
Join Date: Jun 2005
Status: Offline
Reply With Quote
Jun 1, 2005, 07:54 AM
 
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
Reply With Quote
Jun 1, 2005, 10:37 AM
 
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
Reply With Quote
Jun 1, 2005, 11:27 AM
 
I use

sudo /usr/bin/nohup /usr/bin/nice -20 ./boinc -redirectio &

     
Fresh-Faced Recruit
Join Date: Jun 2005
Status: Offline
Reply With Quote
Jun 1, 2005, 11:36 AM
 
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
Reply With Quote
Jun 1, 2005, 01:41 PM
 
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
Reply With Quote
Jun 1, 2005, 02:44 PM
 
Sorry about this but im a utter n00b at coding!

Ive currently got this:

http://www.thunder-keep.co.uk/site/h...tabs_help1.jpg

Is that correct and how do I start Terminal in that folder?

Cheers for this, and your time!

Concorde
     
Senior User
Join Date: Feb 2002
Location: Silly Valley, Ca
Status: Offline
Reply With Quote
Jun 1, 2005, 03:58 PM
 
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
Reply With Quote
Jun 1, 2005, 04:12 PM
 
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
Reply With Quote
Jun 1, 2005, 04:27 PM
 
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
Reply With Quote
Jun 1, 2005, 04:32 PM
 
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
Reply With Quote
Jun 1, 2005, 07:06 PM
 
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
Reply With Quote
Jun 2, 2005, 04:43 AM
 
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
Reply With Quote
Jun 2, 2005, 05:20 AM
 
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
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:10 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2