Crontab - entry not working , cron job not running


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Crontab - entry not working , cron job not running
# 8  
Old 11-13-2014
ps shows a cron process and it is owned by root user

i dont get any search results for grep cron /var/log/messages

I am newbie here to my company, so not sure i can configure mail

please advise
# 9  
Old 11-13-2014
I'm out of ideas. Have your sys admins help you.
# 10  
Old 11-13-2014
Well next thing is, is the user oracel allowed to use corn (sorry Im dislecsic today if you see funny things...) : Do you have /var/adm/cron/cron.* files (.deny or .allow ) if so what is in them...
try with this order:
Code:
30 02 * * 3 /u01/vijay/hotbackupcron >> /u01/vijay/hotbackup.log  2>&1

oracle has permission to write in /u01/vijay ?

This should not be set:
Code:
ORACLE_TERM=xterm; export ORACLE_TERM

Using cron, you have no terminal and cron will complain if it sees anything terminal or keyboard stuff ( tty ...)

Last edited by vbe; 11-13-2014 at 09:01 AM..
# 11  
Old 11-13-2014
Quote:
Originally Posted by vijaymec50
i dont get any search results for grep cron /var/log/messages
Check for other log files in /var/log as well (e.g. syslog & cron.log)
# 12  
Old 11-13-2014
What's the permissions of your script, and the directory it's in?

Code:
ls -la /u01/vijay/hotbackupcron
ls -lad /u01/vijay

This User Gave Thanks to achenle For This Post:
# 13  
Old 11-14-2014
Hope I found the answer . there are no exceute permissions on the cron scripts

i gave the execute permissions by chmod +x hotbackupcron

hope it should run tonight and i will post reply tomorrow morning
# 14  
Old 11-14-2014
Code:
chmod +x hotbackupcron

To who? The owner? the group? other?...
In other words you haven't tested your script...
Before posting "I have issues with a script in cron" you should have tested : That means as oracle, does the script gets executed!
If not, solve the issue before thinking to execute it as a batch using cron...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Cron entry not running

Hi I have one entry in my crontab that do not run, in cron, but it runs manually: 53 7 * * * /moneta_polled01/download/./get_dealer.sh 55 7 * * * /moneta_polled01/download/./mov_dealer.sh The first entry do not run automatically, but it runs manually. The second entry runs... (12 Replies)
Discussion started by: fretagi
12 Replies

2. Shell Programming and Scripting

Checking crontab job entry in 3 different hosts

Hi Gurus, I am trying to connect to remote host from current host to check crontab entries. I have started like this ssh -n -l db2psp 205.191.156.17 ". ~/.profile >/dev/null 2>/dev/null; cd log ;ls | wc -l" I got this error ? ssh: connect to host 205.191.156.17 port 22:... (1 Reply)
Discussion started by: rocking77
1 Replies

3. Shell Programming and Scripting

Cron JOb Entry

Hi All, i have a folder in a server say xxx.xx.xx.xx\abcd\efgh. i want to make a cron job entry so that i would get a mail (me@example.com) on business days. will this help me... 30 4 * * 1-5 cd \abcd\efgh|ls-ltr|mailx:me@example.comhttps://www.unix.com/images/editor/code.png (10 Replies)
Discussion started by: mahesh300182
10 Replies

4. Solaris

Cron job running even after cron is removed

Hi , I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility ) I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
Discussion started by: chidori
4 Replies

5. Solaris

crontab entry not working

Hi, I have added the script entry into crontab by using crontab -e. 30 * * * * /scripts/info.pl $HOME/GCSS/logs > /dev/null 2>&1 But its not working yet. Note: When i was added the script by the time I have faced issue as below 1) If I use crontab -l then i got cant open the script. ... (2 Replies)
Discussion started by: Mani_apr08
2 Replies

6. Shell Programming and Scripting

How to add cron job in /etc/crontab

Hi, How to add a cron job in /etc/crontab using a shell script.??:confused: Actually the requirement is we need to run a script say, XXX.sh every 10 min through “cron”. That can be achieved by adding the below code line in the /etc/crontab , (i.e., “crontab -e ” command to add this to the... (4 Replies)
Discussion started by: Dedeepthi
4 Replies

7. UNIX for Dummies Questions & Answers

Crontab entry is not working

Hi I am trying to test the crontab entry by setting time as below ( set ahead more than 3min before saving the cron) crontab entry: 30 15 1-27 * * && (cd /scripts;./script.csh.prod.UAT /dev/null 2>&1) But this is not working, but below one is working. 30 15 1-27 * * (cd... (1 Reply)
Discussion started by: jramesh1
1 Replies

8. UNIX for Dummies Questions & Answers

Need to Setup cron entry in Crontab

how to schedule a job in cron on last sunday of every month?:mad: (1 Reply)
Discussion started by: tp2115
1 Replies

9. UNIX for Dummies Questions & Answers

perl crontab entry not working

Hi I have a perl script which used 'glance' command to return all the processes with the thread count. It is working fine when it is executed as a command, but as a crontab entry, the perl script is not getting executed. thdcnt.pl #!/usr/bin/perl my $cmd=`glance -bootup -adviser_only... (1 Reply)
Discussion started by: manaac
1 Replies

10. Shell Programming and Scripting

Cron job entry not running

Hi, I am facing this problem . My Cronjob entry is not running !!! I am having Sun solaris 9 and cronjob entry is "45 1 * * * /safedir/rdns/opt/RDNS1.1Scripts/drpl_audit_log_script.sh_orig > /dev/null 2>&1" Now when I try to look in the output log files it creates, it is some file with... (1 Reply)
Discussion started by: hkapil
1 Replies
Login or Register to Ask a Question