Re: Shell script start up file
Re: Shell script start up file
- Subject: Re: Shell script start up file
- From: Doug McNutt <email@hidden>
- Date: Fri, 24 Jan 2003 15:11:30 -0700
At 09:58 -0800 1/24/03, Sean Spear wrote:
>
I am trying find a way to start up a database server on system startup that
>
I normally type into the terminal after logging in.
Put your terminal commands into a file, either tcsh or bash, include a cookie line at the top:
#!/bin/tcsh
and make it executable by doing
chmod 770 filename
Now either:
1) add a .command extension to the name and put an alias to the file in your startup items.
2) Prepare an Applescript that does nothing more than a do Shell Script "/Users/you/whatever to get a full UNIX path to the script. $HOME or ~/ won't work. You probably need a tell application "finder" but I'm never really sure about that.
Option 1 opens Terminal and makes you exit from a dead window manually.
.
Option 2 is cleaner so long as you figure out a way to avoid a request to enable some keychain which will stall the startup if you like to walk away for coffee.
The archives may contain a message from me with some scripts. I was complaining about a TERM problem a few days ago. (It wasn't AppleScript's fault though.)
Beware of shell variables if your script has to set them up. They will be lost to a new terminal window later.
--
--> If you are presented a number as a percentage, and you do not clearly understand the numerator and the denominator involved, you are surely being lied to. <--
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.