![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with cron job | solne | SUN Solaris | 7 | 01-18-2008 08:57 PM |
| Cron problem | tez | UNIX for Dummies Questions & Answers | 3 | 10-27-2006 05:48 PM |
| cron problem! | blowtorch | UNIX for Advanced & Expert Users | 4 | 03-08-2006 01:12 AM |
| cron problem | VPN | UNIX for Dummies Questions & Answers | 2 | 04-16-2004 06:27 AM |
| Cron Problem | Raiden | Shell Programming and Scripting | 4 | 11-16-2003 07:00 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Problem with cron
Hi all
I am trying to run a job via cron, however it does not execute. The cron log file has the following lines in it. When I run the command at CL, it works. root : CMD ( su - JHOps -c $JHOPSROOT/exe/JHOPS15MIN.sh # Execute 15 minute collections ) : PID ( 516342 ) : Fri Nov 25 02:00:00 2005 Cron Job with pid: 155868 Successful Cron Job with pid: 516342 Failed Any ideas where I can look to see why it has failed ? Thanks J |
|
||||
|
Yes: the same way you use it in other scripts, but cronjobs inherit nothing from their parent process (unlike jobs started from an interactive shell).
For this reason i do NOT rely in my scripts on a set environment at all but set it to a "standard-environment" with a function i source in first: Code:
#!/bin/ksh . /usr/local/lib/ksh/f_env ... rest of the code ... bakunin |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|