Shell scripts should not use absolute paths for programsThere is a certain habit in shell scripts of referring to uncommon
programs by their absolute path; for example, if you need to run
You see, you shouldn't do this, because every so often Unix vendors change where they put commands (or, in multi-vendor environments, two vendors disagree about it). If you used hard-coded paths, your script just broke. (In this case, Ubuntu 6.06 put The right way to do this is to add the directory you expect the command
to be in to your script's (This does point out that the Bourne shell could do with a simple way of
adding something to your (10 comments.)
|
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |