The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
start a program with other user's permission srikanthus2002 Shell Programming and Scripting 3 05-21-2007 03:20 AM
How can I make a program start up automatically after the computer restart/startup? munna_dude Shell Programming and Scripting 1 02-07-2007 06:13 AM
Where Do I Start? tnecius UNIX for Dummies Questions & Answers 1 10-08-2006 07:24 AM
where to put an application if i want to start it on start up shukla_chanchal Linux 3 11-03-2005 07:12 PM
Were do I start? pcoste UNIX for Dummies Questions & Answers 1 08-26-2001 01:26 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-22-2002
Registered User
 

Join Date: Jun 2002
Location: Stoneham MA
Posts: 45
How do I start a program when I start my Computer?

I'm running MAC OS X and I'm wondering how I start 'nixey programs (not normal apps) on startup? Things like the dnet client and hxd Hotline Server. Anyone know?
__________________
[url=http://www.macfixer.net][img]http://badges.macfixer.net/forumbadge.gif[/img][/url]
Forum Sponsor
  #2  
Old 06-23-2002
killerserv's Avatar
Unix Predator
 

Join Date: Dec 2000
Location: Phoenix, AZ
Posts: 670
You can write a script and place it under your /etc/rc2.d/ It will execute upon startup.

Code:
#!/bin/sh 

state=$1 

case $state in 

'start') 
ulimit -n 512 
/usr/tmp/nixey/ -bd # start nixey
;; 
'stop') 
kill -15 `cat /etc/shield.pid` 
;; 
*) 
echo "Usage: S96shield { start | stop }" 
;; 
esac
The above is an Example. A small definition on how you can set your program upon startup. Iam showing this example so you can setup the program first then write a sample program as shown above. Anyway im not MAC OS oriented. Sp try to install the Software "Nixey" then play around with it on starting up the program process.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0