crontab job not running


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers crontab job not running
# 1  
Old 01-26-2009
crontab job not running

Hi all,
down here part of the scheduled job in crontab (AIX Version 5)
i have problem running jspPRE-ALL.
i verrify permissions and privileges (the others job are working good)
if i run the job in command line it work correctly

#
# Aggiornamento doni e continuity
00 02 * * 2-6 /prg1/app/abb/sic/JCL/jdata_entry >/dev/null 2>&1Smilie
#
# Spedizione
00 01 * * * /prg1/app/abb/sic/JCL/jspPRE-ALL >/dev/null 2>&1
Smilie
#
# Generazione Statistiche
00 01 * * 2-6 /prg1/app/abb/sic/JCL/jstN60 >/dev/null 2>&1Smilie

Thanks for the helpSmilie
# 2  
Old 01-26-2009
When it works in interactive mode (command line...) and not in crontab, most of the time it is due to your environment settings (initialised in interactive shell...)...
Are all the variables set? what about PATH ?

Addendum:
From AIX (5.3) man:
The cron daemon supplies a default environment for every shell, defining HOME,
LOGNAME, SHELL (=/usr/bin/sh), and PATH (=/usr/bin).
# 3  
Old 01-26-2009
Quote:
Originally Posted by ilpasta
/prg1/app/abb/sic/JCL/jspPRE-ALL
Could you show exactly how you execute that command on the command line?

Also what is the error when that fails in cron?
# 4  
Old 01-27-2009
how i execute this command

after login my location is
/prg1/app/abb/sic >

then i do this
cd JCL

and the location is set like this
/prg1/app/abb/sic/JCL>

then
jspPRE-ALL

and that's all.
there is no error or fails in crontab.
its seems that the job don't starts.
thanks.Smilie
# 5  
Old 01-27-2009
The problem was the environment

... because the first line in my job was
. $ORACLE_BASE/profile/pro_siebel

i correct it with
. /prg1/app/oracle/profile/pro_siebel Smilie

an it work Smilie

thanks everyone
# 6  
Old 01-27-2009
You figured it out on your own, that's great news!!! Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Crontab job is not working

hell all: i am trying to test a crontab job for snmpwalk but it is not working: here is crontab: */1 * * * * root /root/snmpwalk.sh for the script, it is very simple: #!/usr/local/bin/bash /usr/local/bin/snmpwalk -v 2c -c public 100.10.10.10 (6 Replies)
Discussion started by: ipfreak
6 Replies

2. Shell Programming and Scripting

Scheduled job not running automatically in crontab

i have a job scheduled in crontab. The problem is, it is not running automatically as per the time scheduled. But runs when executed manually. What would be the problem? Help me with this please. (6 Replies)
Discussion started by: Santhosh CJ
6 Replies

3. Shell Programming and Scripting

Crontab - entry not working , cron job not running

I have put a cron entry in oracle user for taking hot backup every wednesday@ 2.30 AM and have given the cron entry 30 02 * * 3 /u01/vijay/hotbackupcron 2>&1 >> /u01/vijay/hotbackup.log also find below the script inside hotbackupcron, i have put in env variables as well ... (13 Replies)
Discussion started by: vijaymec50
13 Replies

4. SuSE

A crontab job not working

Hello, This is my first posting in Linux world. I have SLES 11. I've created a file 'packdisk-scandisk.txt' file under /var/opt/Teradata/bteqdba. The content of the file is, cat /var/opt/Teradata/bteqdba/packdisk-scandisk.txt output over /var/opt/Teradata/bteqdba/TAREAS_DBA.log... (2 Replies)
Discussion started by: JDBA
2 Replies

5. Shell Programming and Scripting

Crontab Job Syntax

I have a ksh script that does the following 1. Script executes and creates an output file from a sql query 2. That output file is an input file to the script 3. generates an html file to email to DBA receipients The following syntax works at the command line ... (1 Reply)
Discussion started by: JolietJake
1 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. Shell Programming and Scripting

Schedule a job using Crontab

I would like to execute my script at 17.30 and 23.00 using crontab, could anybody help me out!! Thanks in Advance!! (1 Reply)
Discussion started by: jatanig
1 Replies

8. Shell Programming and Scripting

Help with a crontab job!!!

Hi, i need to schedule a script to run at 6.10AM everyday.I tried to do this way. #!bin/ksh 10 06 * * 0-6 sh /tmp/ss/script/daily_file_check.sh And at the command prompt I did >crontab -e cron.txt I'm not sure whether this is the right way. Can anyone please tell me how to... (4 Replies)
Discussion started by: kumarsaravana_s
4 Replies

9. UNIX for Dummies Questions & Answers

Crontab job queue

My cronjob triggers the script late by 6 minutes. /var/cron/log shows that it got triggered at the right time then where can I track, the late starting of the script. Is there some queue mechanism, some log? This happens sometimes, not daily. but it affects me, whenever it happens. Logging... (1 Reply)
Discussion started by: pksingh2
1 Replies

10. UNIX for Dummies Questions & Answers

crontab job

Hi, I have cornjob was scheduled at 1:00 AM everyday. It has been running fine since last Saturday. But it didn't run since Saturday. Because of daytime saving time change it didn't ran? Please send me your thoughts. Thanks in adavance. Moe (3 Replies)
Discussion started by: Moe
3 Replies
Login or Register to Ask a Question