crontab cant call .sh

hi all,

i wrote a .sh script to start a service and it works fine during normal manual execution. Then it just wont work when i placed it into crontab.

0 15 * * * /data/PeopleSoft/E811/system/bin32/end_run_app.sh

i tested this cron with 'touch' and it managed to return the desire result.

The script is own by 'user'. Reason being that application can only be started using that particular user.

Please help.

[450 byte] By [mfmb] at [2007-11-26 12:01:10]
# 1

Hi,

It would be better to check control files under /etc/cron.d directory.

There are two types of files: cron.deny and cron.allow.

If the user is in the cron.deny file, you should remove it from file.

By default cron.allow file does not exist, this means (if cron.allow file doen not exist) all users can access their crontab file.

If cron.allow file exists, you should add user to that list.

i hope this will solve Your problem,

regards,

zulusa

zulusa at 2007-7-7 12:24:30 > top of Java-index,General,Maintenance...
# 2
"won't work" isn't very specific.There's a log file in /var/cron/log. Does it show the line was executed? What was the return code? Does the script produce output normally? Was any email delivered to the cron user?-- Darren
Darren_Dunham at 2007-7-7 12:24:30 > top of Java-index,General,Maintenance...
# 3
hi, you can add it to crontab of your user. crontab -u user. another thing is that cron don't know your evironment, so check you rights, paths etc.also check the rights on this script it have to be executable.~m
matejuse at 2007-7-7 12:24:30 > top of Java-index,General,Maintenance...
# 4
'-u' isn't a valid option. The username is just listed at the end.-- Darren
Darren_Dunham at 2007-7-7 12:24:30 > top of Java-index,General,Maintenance...