I find these to be pretty portable across Unixes:
#!/bin/sh
# the next line restarts using wish \
exec wish "$0" "$@"
<tcl/tk code>
#!/bin/sh
# the next line restarts using tclsh \
exec tclsh "$0" "$@"
<tcl code>
: # A comment mentioning perl
eval 'exec perl -S $0 ${1+"$@"}'
if 0;
<perl code>
(the latter sh ":" trick is required on Linux because the kernel is a little
brain dead in parsing the #! line)
Karl
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************
- Tech tip: indirection in a script's magic #! line Bill Sconce
- Re: Tech tip: indirection in a script's magic #! l... Karl J. Runge
- Re: Tech tip: indirection in a script's magic #! l... Ray Cote
- Re: Tech tip: indirection in a script's magic #! l... Bill Sconce
- Re: Tech tip: indirection in a script's magic #! l... Bill Freeman
- Re: Tech tip: indirection in a script's magic ... Tom Rauschenbach
- Re: Tech tip: indirection in a script's magic #! l... Benjamin Scott
- Re: Tech tip: indirection in a script's magic #! l... Ray Cote
- Re: Tech tip: indirection in a script's magic #! l... Cole Tuininga
- Re: Tech tip: indirection in a script's magic ... Kenneth E. Lussier
- Re: Tech tip: indirection in a script's magic #! l... Jeffry Smith
