Re: cron script problem
From: Gene Sais (Gsais_at_CO.PALM-BEACH.FL.US)
Date: 09/30/04
- Previous message: Ray, Mark: "Re: cron script problem"
- Maybe in reply to: Leven, Chris: "cron script problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Sep 2004 10:08:13 -0400 To: aix-l@Princeton.EDU
Sample crontab entry:
######################################################
#node1 oracle crontab
######################################################
#minute(0-59) hour(0-23) day(1-31) month(1-12) weekday(0-6 with
0=Sunday)
######################################################
00 07 * * 1-5 /oracle/myjob.ksh > /oracle/myjob.log 2>&1
>>> MRay@NEGASCO.COM 9/30/2004 9:36:25 AM >>>
Try putting the full path to the script in your crontab, too.
-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU]On Behalf Of
Shawn Bierman
Sent: Thursday, September 30, 2004 9:19 AM
To: aix-l@Princeton.EDU
Subject: Re: cron script problem
I doubt you need the nohup too.
-shawn
>>> Holger.VanKoll@SWISSCOM.COM 9/30/04 8:05:00 AM >>>
id say the "&" is unnecessary (cronjobs are always "backgrounded") and
might be your problem
try without &
if that still doesnt work, post the script
-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
Leven, Chris
Sent: Thursday, September 30, 2004 2:37 PM
To: aix-l@Princeton.EDU
Subject: cron script problem
My DBA needs to run a job in background out of a cron job. After we
bring the database back up she needs this process to run in background.
She added the following line to the startup script but the cron job
hung. It runs fine from the command line. Any thoughts?
nohup mwact.sh start &
Christopher Leven
Senior Programmer/Analyst
IBM Certified Specialist AIX Administration IBM Certified Specialist
AIX Support IBM Certified Specialist PSSP
Garlock Sealing Technologies
An EnPro Industries Company
1666 Division St
Palmyra, NY 14522
P 315-597-3034
F 315-597-7250
C 585-704-0107
Chris.leven@garlock.com
----------Legal Disclaimer----------
The information contained in this message may be privileged and
confidential, and is intended solely for the use of the named addressee.
No other person is authorized to access, copy or re-use this message
(or any information contained herein). If you are not the intended
recipient, please notify us immediately by replying to this message and
delete it from your computer.
-----------------------------------------
The contents of this e-mail are intended for the named addressee only.
It contains information that may be confidential. Unless you are the
named addressee or an authorized designee, you may not copy or use it,
or disclose it to anyone else. If you received it in error please notify
us immediately and then destroy it.
- Previous message: Ray, Mark: "Re: cron script problem"
- Maybe in reply to: Leven, Chris: "cron script problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|