Help needed on cron job


 
Thread Tools
Contact Us Forum Support Area for Unregistered Users & Account Problems Help needed on cron job
# 1  
Old 06-18-2008
Help needed on cron job

Hi Yogesh,

I have a script where i have set up a cron job. The script is running manually. The cron job is running successfully. The script is written so that whenever the database link is down, we need to get an alert mail. We are getting the mail when we run the script manually but not when executed through cronjob. Please reply me to sanei05@gmail.com
# 2  
Old 06-18-2008
hi

can u pls help me out what could be the problem.
# 3  
Old 06-18-2008
cron jobs run in a limited environment where the PATH is very limited - this would be the first thing to look at if your script works fine manually but not via a cron job
# 4  
Old 06-18-2008
Check if the script is getting executed at the first place.It may be a the case, that the script is not running at all..

Easiest way to do this would be, to built certain empty files in the script and check if the files are created.
# 5  
Old 06-18-2008
Do not post technical questions in this forum.

No exceptions.

Thank you.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies

2. Shell Programming and Scripting

Commented cron job -- cron monitoring

Hi I have a requirement to write a shell script,that will check the all commented job in cron job.Please help !! (2 Replies)
Discussion started by: netdbaind
2 Replies

3. 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

4. Shell Programming and Scripting

Help needed regarding cron job scheduler with CyberArk Password security

Hi All, I have a script which will restart some web server and bring it up again. For that I need to retrieve 3 password from CyberArk (Cyber-Ark - Wikipedia, the free encyclopedia) vault. My question is: Is this possible to schedule the script through cron and automatic password... (0 Replies)
Discussion started by: saps19
0 Replies

5. Shell Programming and Scripting

Cron Job help

I need to write the cron job for the following scenario, Please help me out The CRON job runs sometime at night on Saturday and checks if there are more than eight files in the /PROCESSED folder. Any files over and above eight are deleted based on ascending order of date (eight most recent... (10 Replies)
Discussion started by: sandeep.dwivedi
10 Replies

6. Solaris

cron job starts new cron proccess

I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Discussion started by: ron76
3 Replies

7. Linux

cron job

In my var/log/cron file Im getting this error: Mar 6 11:57:01 intranet crond: (tmp.XXXXGHJVjz) ORPHAN (no passwd entry) Mar 6 11:57:01 intranet crond: (root) RELOAD (cron/root) Mar 6 11:57:01 intranet crond: (tmp.XXXXFqiL6E) ORPHAN (no passwd entry) Im not a pro bu I think the cronjob... (4 Replies)
Discussion started by: dannyd
4 Replies

8. UNIX for Dummies Questions & Answers

cron job

I created a php script i want to run as a cronjob. Where or how can I locate the cronjob file to add my script ? (3 Replies)
Discussion started by: dannyd
3 Replies

9. UNIX for Dummies Questions & Answers

CRON usage for CRON job

can anybody explain the usage of CRON for adding a cron job. please provide an example also for better understanding !!! Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies

10. Shell Programming and Scripting

cron job

I believe that crob invokes command under bash. But most of our work are carried out using c shell. So what do I need to be aware of (or what precautions should I be taking) when I use cron. (1 Reply)
Discussion started by: sharanbr
1 Replies
Login or Register to Ask a Question