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 > Getting RC5 running at startup

Getting RC5 running at startup
Thread Tools
Senior User
Join Date: May 2001
Location: Boston, MA
Status: Offline
Reply With Quote
Apr 19, 2003, 02:30 PM
 
Is there an easy way to get dnetc to run when Mac OS X starts up and stay running regardless if a user is logged in or not? I've tried editing the crontab as it says in the team instructions but I've had no luck with it. I checked dnetc's page for instructions and this is what I found: http://n0cgi.distributed.net/faq/cache/84.html

"On BSD systems (FreeBSD, OpenBSD, NetBSD, BSD/OS, MacOS X etc):
simply add '/path/to/dnetc -quiet' to /etc/rc.local "

I have multiple rc startup files, including rc, rc.boot, rc.common and others. Which one can I add this line to in order to get the dnetc client to start when Mac OS X starts?
     
Grizzled Veteran
Join Date: Sep 2000
Location: Florida
Status: Offline
Reply With Quote
Apr 19, 2003, 04:06 PM
 
You can have the cron execute dnetc at startup for you. Create a text file in TextEdit (be sure it's not rtf) and put in it:

Code:
@reboot cd /Applications/dnetc;./dnetc -quiet &
Change the path to the dnet client to whereever it is for you. You can name the file anything you want, and save it anywhere you want.

Now in the terminal navigate to that file and type

Code:
sudo crontab (insert filename here)
It'll ask you for your user password, so enter it. Now that task has been added to the cron's list of duties for the root user. So it will run even when no one is logged in.

To view the list of duties for the cron type

Code:
sudo cron -l
and to clear that list type

Code:
sudo cron -r
Hope that works for ya.
-- SBS --
     
Senior User
Join Date: May 2001
Location: Boston, MA
Status: Offline
Reply With Quote
Apr 21, 2003, 03:48 PM
 
Thanks! I'll give this a try
     
Senior User
Join Date: May 2001
Location: Boston, MA
Status: Offline
Reply With Quote
Apr 21, 2003, 08:53 PM
 
I got it working with your instructions, and in case anyone else is wondering there is a command line switch like the Windows dnetc client has, "./dnetc -install" that automatically makes it start when the computer starts. I got this running in the background on a G4 Cube, iMac DV, Dual 1 GHz G4 and a G4 800 single processor. There should be some heavy RC5 damage coming up in the next few days
     
   
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 09:14 PM.
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