On 27 Jan 2007, at 09:37, Doug Ransom wrote: > When a shell starts from something like crontab, or when a mac app > starts (like emacs), or for an app like apache which may invoke a > python cgi script, how can I set the path to include /sw/bin? > > Whether I am running emacs (Carbon emacs, not the one you run in a > shell) and starting python modet, the system is running a cron job, > or I start a shell whcih is not a login shell, how can I set up the > system path to include /sw/bin so I always run the python in /sw/ > bin rather than the one the system comes with? >
I just fought this battle with cron, and I won the war by putting "source /sw/bin/init.sh; " before the commands I wanted to run in the crontab. Without the quotes of course. Kevin Horton Ottawa, Canada ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Fink-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-users
