[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ProgSoc] shell scripts
Glenn, looks like you've pegged me on all counts here :-/
I'll have to brush up on my UNIX trivia, been spending too much
time using NT5... err... win2k lately.
> > Is the script marked excecutable? It might be stupid, but I'm sure
> > lots of people forget (me too!).
>
> If it aint executable it will say 'Permission denied' I think.
>
> > I'm not sure how smart the shell is, you might need "#/bin/sh" as
> > the first line.
>
> Ooops, ya missed the '!' thingy =)
>
> First line has to point to the shell you're going to use:
>
> e.g. #!/usr/local/bin/perl
>
> .. or otherwise it will just fire the commands at the current shell.
>
> Also, I have a strange feeling that you'll also get the same error message
> (Command not found), if the shell pointed to on the first line doesnt exist.
> Someone can test this out for me ..
>
> > And Glenn beat me too it, the most likey cause of any problems:
> > "./name" to reference the file in the currect directory.
>
> Hehe =)
>
> gleNN
Murray Grant
ligos@nospam.yahoo.com ICQ# 8607430
An inch of respect lost, takes a mile to regain.
-
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.