Re: Shell Scripting
Re: Shell Scripting
- Subject: Re: Shell Scripting
- From: phildobbin <email@hidden>
- Date: Wed, 25 Sep 2002 12:07:19 +0100
On 24/9/02 18:56, "Kevin Muldoon" <email@hidden> wrote:
>
Unix Power Tools? Cool! In fact, I've answered my own question.
>
>
#1) Save your text as UNIX from BBEdit. Script won't work otherwise.
>
#2) enclose your command line statement (in this case, whoami) with a
>
'Grave Accent' (same key as the tilde, but without shift key).
>
>
One last question! WHERE is the best place to put this script on your
>
system so it can be accessed?
[...]
I created a directory called `bin' in my Home directory (if you share your
Mac name it .bin to keep it out the way):
`bash2.05 phil@localhost ~ $ mkdir bin'
And I keep all my shell scripts and the like in there. You can, of course,
create it in any other directory:
bash2.05 phil@localhost ~ $ cd /Users/foo/bar
$ mkdir bin
It's generally considered unwise to add `bin' to your path for a whole lot
of reasons (security, mostly), so to use the scripts `cd' to the appropriate
directory and execute them thus:
bash2.05 phil@localhost ~ $ ./fooscript
You'll also have to set the executable bit: `chmod 755 fooscript' in order
for them to run.
Regards,
Phil.
_______________________________________________
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.