[cse491] Making twill scripts executable scripts
C. Titus Brown
ctb at msu.edu
Sat Nov 7 15:44:17 PST 2009
Hi all,
if, as the first line of your twill script file, you put
#! /usr/bin/env twill-sh
and then 'chmod +x' your script, you will then be able to run the twill
script directly from the command line.
The '/usr/bin/env' looks for twill-sh in your $path shell variable. You
could also put in the path directly to twill-sh,
#! /user/ctb/install/bin/twill-sh
but that would then be entirely specific to the CSE install; the first
approach will work on any machine where twill-sh is in your path.
cheers,
--titus
--
C. Titus Brown, ctb at msu.edu
More information about the cse491-fall-2009
mailing list