On Thu, Nov 07, 2002 at 07:36:39 -0600, Lance Hoffmeyer wrote: > I have a script located in ~/bin/map/ that runs fine when > start it manually but when I set it up in a cron job it > wants to run from "~" so that a couple of things don't > work because they are in ~/bin/map and not in ~. > Can I "set HOME = ~/bin/map" so that it only applies to > this shell and not globally or is some other way to > do this?
If you do not export HOME, the value will only affect the current shell. But child processes won't get the previous value of HOME. I think that it is better to fix the script so that it doesn't rely on HOME. Also, you should have the same problems when you run the script manually, so it would be surprising that this comes from the value of HOME. -- Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/> - 100% validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]