hraja77
asked on
Why does it work on command line but no cron ?
This crontab entry works fine on command line but as i put it in cron it errors:
with
20060616 15:03:00 ##### tidy_backup.sh: Starting Process
20060616 15:03:00 ##### tidy_backup.sh: Exporting ORACLE_SID as IF9P1
20060616 15:03:00 ##### Obtaining Passwords
20060616 15:03:00 ##### tidy_backup.sh: ERROR !! PLEASE INVESTIGATE !!!
Does cron have a different enviroment to command line
with
20060616 15:03:00 ##### tidy_backup.sh: Starting Process
20060616 15:03:00 ##### tidy_backup.sh: Exporting ORACLE_SID as IF9P1
20060616 15:03:00 ##### Obtaining Passwords
20060616 15:03:00 ##### tidy_backup.sh: ERROR !! PLEASE INVESTIGATE !!!
Does cron have a different enviroment to command line
ASKER
what is TTY
TTY - text terminal
http://en.wikipedia.org/wiki/Tty
http://en.wikipedia.org/wiki/Tty
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Havent I mentioned about env variables?
Whatever...
Whatever...
Yes. Usually problem is in env PATH variable. Script run from command line has it's commands in PATH, while run from cron has not.
SOmetimes, commands requires TTY - cron supplies none.