Andrew Jorgensen wrote:
Inside your script you can do (this is bash syntax, so translate to
ksh if that's different):

DIRNAME=`dirname $0`

Right on Andrew! I'm a big fan of

  cd `dirname $0`

in most of my bash scripts. That way I always know I am executing from the directory containing me.

--Dave

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to