|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
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 |
|
|
|
|
|
#3 |
|
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.
|
|
|
|
|
|
#4 |
|
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? |
|
|
|
|
|
#5 |
|
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 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|