James D. Parra pecked at the keyboard and wrote:
Hello,
Just found something odd. I added a path for myself and I can run commands from the path, however after setting up a up a cron job, running as me, it can't find the command. Even root has the command in its path. Output below;
Output from command sh /home/james/cleanup.sh
/home/james/cleanup.sh: line 22: pg_dump: command not found
I can run pg_dump from a CLI with out any problems. Any ideas on how I can fix the cron job environment?
Thank you in advance.
James
It is always best to use absolute paths in a cron command as cron does not use the environment that you get when you log into an interactive session. If the cron command is to run a script you can add a "path=" statement at the beginning of the script. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org