Scheduled job is not running on time.but it is running when executing same command manually.
Manually executing the same
Followed steps
Added the job to cron tab.
cron has minimal environment.
You can simulate it on the command line:
env -i clears the environment, then USER and HOME are set from the current env, and PATH is set to the default, then the command is run.
If you do not use parameters 1 and 2 then you should use 1>/dev/null and 2>&1 (no spaces!) to supress eventual output.
But not for the test on the command line - here you want to see something!
Last edited by rbatte1; 07-22-2019 at 08:14 AM..
Reason: Correcting end CODE tag marker
Hi,
Can anyone help me out with scheduling a cron job for the below:
i wnated to delete file from a folder on every sunday at 05:00 AM
this is code i have used.
*******************************************************
0 05 * * 0 find /abc/xyz/pqrs/bak/ -type f -mtime +30 -exec rm -f... (5 Replies)
Hi all,
I am new to cron jobs..
i wanted to schedule a cron job that wil send a mail to me at 3:00PM on 10th August ie is on Wednesday.
0 15 10 8 3 echo "message from UNIX here"|mail -s "your subject here" user@user.com
However this was not executed...
Can anyone please... (0 Replies)
Hi,
I want to run cron scheduler to run some script at different times of the day.But these times don't have some fix intervals. So how we can run jobs at 6:30AM, 1:00PM and 4:30PM everyday.
Please help.
Thanks
Neeraj (2 Replies)
Hi,
from normal user(oracle) i am unable to run scheduled job in cron:
os version:
bash-2.03$ uname -a
SunOS sumail02 5.8 Generic_117350-39 sun4u sparc SUNW,Ultra-60
bash-2.03$ crontab -l
55 * * * * sh /oracle/statistics.sh > /dev/null 2>&1
bash-2.03$ cat /oracle/statistics.sh... (2 Replies)
Hello All,
I m newbie to Job scheduling.
Suppose i have 2 files s1.sh and s2.sh i want to make a schedule such as
run s1.sh at 2AM everyday and run s2.sh 9Pm everyday.
Can anyone tell me how to schdule that using CRON and i want to know what is CRON and CRONTAB.
Thanks in advance (2 Replies)