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 > "Optimize RC5 - Mac OS X" page question

"Optimize RC5 - Mac OS X" page question
Thread Tools
Mac Elite
Join Date: Feb 2001
Location: Washington, DC
Status: Offline
Reply With Quote
Nov 10, 2001, 10:29 PM
 
The page (http://team.macnn.com/rc5tipsx.phtml) gives instructions to make RC5 run via cron...

why not give instructions to run via <font face = "courier">StartupItems</font>?


All you need is a "StartupParameters.plist" and a shell script in /Library/StartupItems/(name of shell script). Make sure the shell script is executable, configure dnetc to run in "quiet mode" and it'll run every time you boot.

An example shell script:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>#!/bin/sh

/path/to/dnetc</font>[/code]

An example StartupParameters.plist:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>&lt;?xml version=<font color = red>"<font color = blue>1.0</font>"</font> encoding=<font color = red>"UTF-<font color = blue>8</font>"</font>?&gt;
&lt;!DOCTYPE plist SYSTEM <font color = red>"file:<font color = brown>//localhost/System/Library/DTDs/PropertyList.dtd"</font>&gt;</font>
&lt;plist version=<font color = red>"<font color = blue>0.9</font>"</font>&gt;
&lt;dict&gt;
&lt;key&gt;Description&lt;/key&gt;
&lt;string&gt;dnetc&lt;/string&gt;
&lt;key&gt;Messages&lt;/key&gt;
&lt;dict&gt;
&lt;key&gt;start&lt;/key&gt;
&lt;string&gt;Starting distributed.net RC5 Cipher Challenge Client&lt;/string&gt;
&lt;key&gt;stop&lt;/key&gt;
&lt;string&gt;Stopping distributed.net RC5 Cipher Challenge Client&lt;/string&gt;
&lt;/dict&gt;
&lt;key&gt;OrderPreference&lt;/key&gt;
&lt;string&gt;Last&lt;/string&gt;
&lt;key&gt;Provides&lt;/key&gt;
&lt;array&gt;
&lt;string&gt;dnetc&lt;/string&gt;
&lt;/array&gt;
&lt;key&gt;Requires&lt;/key&gt;
&lt;array&gt;
&lt;string&gt;Resolver&lt;/string&gt;
&lt;/array&gt;
&lt;/dict&gt;
&lt;/plist&gt;</font>[/code]
/Earth\ Mk\.\ I{2}/
     
Moderator Emeritus
Join Date: Dec 2000
Location: College Park, MD
Status: Offline
Reply With Quote
Nov 10, 2001, 10:37 PM
 
It's on the list of things to change.
I run it at bootup that way. You can download an already made script from the dnet apps, but I don't think it works, and I'm not sure why.
My website
Help me pay for college. Click for more info.
     
Mac Elite
Join Date: Feb 2001
Location: Washington, DC
Status: Offline
Reply With Quote
Nov 11, 2001, 12:12 AM
 
ok, cool... didn't see the boot script on the software page

<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>#!/bin/sh

##
# run the distributed.net client.
##

. /etc/rc.common

ConsoleMessage <font color = red>"Starting distributed.net client"</font>

/dnetc/dnetc -quiet &</font>[/code]

if it's not working, I think it might have something to do with the trailing '&'. (<font face = "courier">-quiet &</font> is rather redundant)

I'll set it up tonight and find out.

[EDIT: I tried it... once I set the path correctly it worked fine without any modification.]

[EDIT 2: cleaning up UBB code]

[ 11-11-2001: Message edited by: Earth Mk. II ]

[ 11-11-2001: Message edited by: Earth Mk. II ]
/Earth\ Mk\.\ I{2}/
     
   
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 08:25 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