Re: bash/cron help
On November 14, 2002 04:57 pm, Lance Hoffmeyer wrote:
> I am having a problem with this script. It works fine
> if I run it from a command line. If I try and run it
> from cron the images that are in ~/bin/Weathermap/images
> that get embedded during html2ps do not get embedded.
> Also, unless I specify the path the working dir appears
> to be /home/lance and not /home/lance/bin/Weatherma
Maybe you should explicitly define your working directory $home= in the
script, then use $home instead of ~ since when you run it from cron it's not
run from the same directory (and maybe not as the same user?) as when you run
it by hand.
--
-Levi
Reply to: