Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rate Thread Display Modes
Old 04-03-2002, 03:04 PM   #1
gennaria
Prospect
 
Join Date: Apr 2002
Location: st. louis
Posts: 2
auto execute terminal commands at startup

Forgive me if the answer is obvious...

I am currently using my G4 tower with Airport card as a base station for my TiBook. Both are running OSX. Everytime I restart the G4 tower I have to open the terminal type a command and then the tower will begin acting as a router to the TiBook. Not a big deal, but it would be great to be able to have this happen automatically at startup. Is there a special kind of script that does that sort of thing?

Thanks,
jerry gennaria
gennaria is offline   Reply With Quote
Old 04-03-2002, 03:17 PM   #2
eriklager
Triple-A Player
 
Join Date: Jan 2002
Location: Sweden
Posts: 122
Yoy can make a startup item and put it in the StartupItems folder. You can get information about creating startup items here. You could also make an applescript and add it to the Login Items in the System Preferences Login pane.

Erik
eriklager is offline   Reply With Quote
Old 04-03-2002, 03:41 PM   #3
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
you could also put the commands into a shell script, name the script with the .command extension, and put that into your system preferences->login items. that would avoid the applescript overhead.
mervTormel is offline   Reply With Quote
Old 04-03-2002, 04:01 PM   #4
jmeador
Triple-A Player
 
Join Date: Feb 2002
Location: Dallas
Posts: 51
Suppose you wanted the command to run automatically on
reboot -- before someone logged in?

For example, Let's say I have a server that always needs a route added on power-up. If the system reboots because power loss on Friday night, would the Startup items run when power came back on Friday or when someone actually logged in Monday morning?
jmeador is offline   Reply With Quote
Old 04-03-2002, 04:31 PM   #5
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
to stage a user-installed startup item for boot-time, you'd need to get the scriptage into "/Library/StartupItems/yourTask"

as erik noted above, there is a how-to at:

http://www.opensource.apple.com/proj...ter_HOWTO.html
mervTormel is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Forum Jump



All times are GMT -5. The time now is 02:06 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.