![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with cron job | solne | SUN Solaris | 7 | 01-18-2008 04:57 PM |
| Cron problem | tez | UNIX for Dummies Questions & Answers | 3 | 10-27-2006 02:48 PM |
| cron problem! | blowtorch | UNIX for Advanced & Expert Users | 4 | 03-07-2006 09:12 PM |
| Problem with cron | jhansrod | AIX | 2 | 11-25-2005 12:30 PM |
| cron problem | VPN | UNIX for Dummies Questions & Answers | 2 | 04-16-2004 03:27 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello All,
One of my shell scripts was working fine till a few days back. It was scheduled in the cron. But yesterday i made some modifications to the script. The script works fine when i run it from the prompt. But it is not working when in runs from cron. Can someone help me out from this. |
| Forum Sponsor | ||
|
|
|
||||
|
If the cron job produces any output to stdout or stderr, it will email the output to the user that the job runs as. Have you checked for mail output? It may provide a hint to the problem.
Cheers, Keith Last edited by kduffin; 11-17-2003 at 06:39 PM. |
|
|||
|
Try this:
If your platform is solaris, restart the cron daemon as follows: /etc/rc2.d/S75cron stop /etc/rc2.d/S75cron start If your platform is HP, restart the cron daemon as follows: /sbin/rc2.d/S730cron stop /sbin/rc2.d/S730cron start *Remember your system may has different number of the script. eg. S70cron etc. simply type "grep -i cron *" in the path to find which script for stop/start cron daemon. Hope it help.
__________________
tikual :) |
|
|||
|
Thanks buddies,
Actually the ORACLE HOME path was set wrong in a profile file called by my program. I was connecting to a different instance of the database in the new script. Thanks guys, Raiden. |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | |
| Display Modes | |
|
|