Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'You forgot something...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
You forgot something...
Authored by: onekopaka on Jan 28, '08 07:27:53PM

well, it work just fine for me calling it like so:

./update_freedns.sh

in the terminal.

I guess if you want it to be handled correctly with open, or the finder you need the shebang.(#!/usr/bin/sh)



[ Reply to This | # ]
You forgot something...
Authored by: wallybear on Jan 30, '08 07:07:23AM

you can omit #!/bin/sh if your script does not use shell internal directives (like a variable assignment, e.g), otherwise it's required.

#!/bin/sh invokes the predefined shell interpreter.


It's a good scripter habit to put it in scripts, also when it could be superfluous.



[ Reply to This | # ]