image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old June 11th, 2001, 03:16 PM
Registered User
 
Join Date: Sep 2000
Location: San Francisco
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
ericmurphy is on a distinguished road
CLI Setiathome

I'm running the text-based version of setiathome because it seems to run significantly faster than the GUI screensaver version (and I like OS X's screensavers so much I prefer using them to sah). But I get tired of having to remember to restart setiathome every time I restart the system or even log out of the console. Is there a way to either a) set up setiathome so it will continue to run across logouts, or b) script it so it will restart automatically on my login?

setiathome lives in: /~eric/applications/seti/

the command invoking it is ./setiathome -verbose
Reply With Quote
  #2  
Old June 11th, 2001, 04:15 PM
blb blb is offline
`'
 
Join Date: Apr 2001
Location: CO, USA
Posts: 651
Thanks: 0
Thanked 0 Times in 0 Posts
blb is on a distinguished road
Here's how I do it:

First, I have a crontab entry,

44 * * * * /Users/blb/setiathome-3.03.powerpc-apple-darwin1.2/runseti

which makes sure it's running every hour (44 minutes past); since seti will only run one copy per directory, this won't kick off a new one every hour.

The runseti script is:

#!/bin/sh
#
cd /Users/blb/setiathome-3.03.powerpc-apple-darwin1.2/cpu0
nohup ./setiathome -nice 19 > /dev/null 2> /dev/null &
cd /Users/blb/setiathome-3.03.powerpc-apple-darwin1.2/cpu1
nohup ./setiathome -nice 19 > /dev/null 2> /dev/null &

I have two directories, one per CPU, where the setiathome executable is symlinked back to the directory where it actually resides. Of course, if you only run one copy, you don't have to do this.
Reply With Quote
  #3  
Old June 11th, 2001, 09:21 PM
Registered User
 
Join Date: Sep 2000
Location: San Francisco
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
ericmurphy is on a distinguished road
crontab entry for setiathome

Thanks, I appreciate it.

Unfortunately, I don't know enough about editing crontab to use the information yet, but my copy of OS X: the Complete Reference should be coming in tomorrow, and then I'll probably know enough about what I'm doing to do it.
Reply With Quote
  #4  
Old June 11th, 2001, 10:03 PM
endian's Avatar
Dis Member
 
Join Date: Sep 2000
Location: inside my skin
Posts: 960
Thanks: 0
Thanked 0 Times in 0 Posts
endian is on a distinguished road
It's not a big deal, just editing a text file ( you could even do it with BBEdit )

Or you could use Cronnix, which is a GUI front end for the whole thing (serach on versiontracker)
__________________
g4 400 AGP - 512 RAM
10GB internal (dumping ground) + 60GB (30 GB OSX partition/30 GB OSX Server partition) - 3GB external SCSI (OS9/and I think the Public Beta is still on there somewhere) - DVD-RAM - ZIP

Reply With Quote
Reply

Thread Tools

Posting 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 Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Giving a CLI app an Aqua window - how easy? willmac Software Programming & Web Scripting 7 September 2nd, 2003 05:03 PM
problems with CLI apps after upgrading to 10.2 brody Mac OS X System & Mac Software 11 December 28th, 2002 07:24 PM
Samba SWAT problem, CLI blues Lazarus18 Mac OS X System & Mac Software 0 December 5th, 2001 01:05 AM
cli FTP with put recursive option WhateverJoe Mac OS X System & Mac Software 3 April 20th, 2001 11:26 AM
help w/ CLI logouts biotech Mac OS X System & Mac Software 1 January 28th, 2001 10:11 PM


All times are GMT -5. The time now is 01:30 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.