Cron Jobs Not Executing


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Cron Jobs Not Executing
# 1  
Old 02-22-2012
Cron Jobs Not Executing

Hi Guys,

Good day! I don't know what's the problem with this, I have two (2) entries in Crontab, these 2 entries are scripts which I've created. I need these 2 for automatic backup and maintaining only 3 files under a given directory. Here are my entries below, and they are NOT executing:
Code:
00 16 * * * /usr/bin/expect /home/rymnd/emong/autobackup
10 16 * * * /usr/bin/sh /home/rymnd/emong/backup_remover

Any advise please. Btw my Cron is Version V5.0

Thanks in advance!

BR,
rymnd12345

---------- Post updated at 09:26 AM ---------- Previous update was at 09:22 AM ----------

To add-up to, I've tried entering this below in Cron and YES it worked, but not for my 2 scripts. All permissions were already set to 777 even the sub-directory itself.
Code:
0 15 * * * cp /home/rymnd/scripts/file.sh /home/rymnd/emong/


Thanks!

BR,
rymnd12345
# 2  
Old 02-22-2012
what your cron log says ?

check /var/log/cron
# 3  
Old 02-22-2012
Hi itkamaraj,

I can't seem to find /var/log/cron.

Thanks!
# 4  
Old 02-22-2012
You said which version of "cron" you were using. More useful would be which OS (+version) you are using.
# 5  
Old 02-22-2012
Hi Scott,

It's SUSE® Linux Enterprise Server (SLES)
# 6  
Old 02-22-2012
Boo. I was hoping you'd pick one I know something about Smilie

"According" to Google, cron logs basic stuff in /var/log/messages on SuSE.
# 7  
Old 02-22-2012
Look in unix mail for the owner of the cron. Any errors from the cron job should be there.



Btw. Permissions 777 is a security nightmare.

Just in case you didn't realise, the three crons posted will fire in the afternoon at 16:00 16:10 and 15:00 .
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Cron jobs and at jobs

There are two jobs in Solaris , Cron and at jobs.. I know how to disable or enable cron jobs. How can I enable at jobs and disable it. Kindly help. Rj (2 Replies)
Discussion started by: jegaraman
2 Replies

2. Solaris

cron jobs

how to Put a cron entry which should be same script triggered on every Saturday and 1st of every month at 01.00 GMT. 0 2 1 * 6 --( At 2.00 GMT every sat & on 1st of every month) the above syntax is correct? Thanks (1 Reply)
Discussion started by: kurva
1 Replies

3. HP-UX

Cron jobs

i am new for cronjobs can someone please tell me what logic is behind these RED Numbers and stars below? --> crontab -l 00 1 * * * /home/scripts/TarprodContent > /tmp/MprodBkup.log 2>&1 00 1 * * * /home/scripts/TarTprodContent > /tmp/TprodBkup.log 2>&1 00 1 * * *... (5 Replies)
Discussion started by: ajadaun
5 Replies

4. Solaris

Cron Jobs

I'm trying to run cron jobs to start any inhibited processes after a system reboot. I can schedule th cron, but i'm confused as to how to incorporated the reboot, since reboot is scheduled at different times, once every month. How can I write this to start every 15 min after after a reboot ... (2 Replies)
Discussion started by: Remi
2 Replies

5. Shell Programming and Scripting

Overlapping(executing time) jobs in crontab

I do not have the luxery of a server that i can try on, so i had to post my qn here. Say i have two jobs in the cron table, the jobs are scheduled 2 mins apart. Assuming the first jobs does a lot of operations and takes > 2 mins. Will the second job be executed? Will Unix actually have a queue... (3 Replies)
Discussion started by: new2ss
3 Replies

6. UNIX for Advanced & Expert Users

cron jobs

I need to monitor my cron jobs with another unix machine since occasionally the cron will go down on the main server but there are no errors. Can anyone help with a script to write to use the cron on the back up machine to monitor the main server? I am using SCO and the cron jobs have been... (3 Replies)
Discussion started by: rmarral
3 Replies

7. Solaris

Cron Jobs

whats up, Have some questions about cron jobs, I am fairly new to the unix os. My cronjob sends all output to my mail, does anyone know how to redirect output to come out on the screen??? Thanks...... (6 Replies)
Discussion started by: lewisoco
6 Replies

8. UNIX for Dummies Questions & Answers

Cron Jobs

Where can someone find info on Cron Jobs? Very new to UNIX and the PC I inherited looks to have several of them. Looks like they are some kind of background program that runs automatically at specified times. Would like to delete some of them and know more about them. (6 Replies)
Discussion started by: dereckbc
6 Replies

9. UNIX for Dummies Questions & Answers

cron jobs

I was wondering if it´s possible to cron job not to run on a certian day and time. I´ve got a job that runs everyday at 08:00 but would like it not to run on the 20:th between 08:00 and 10:00 Anyone know if this is possible, and if. How do i do it? regards... dOzY (3 Replies)
Discussion started by: dozy
3 Replies

10. Shell Programming and Scripting

cron jobs

hi folks, I need an explanation on cron jobs with an example (4 Replies)
Discussion started by: vijaysabari
4 Replies
Login or Register to Ask a Question