* executing programs from cron
@ 2001-01-08 17:18 Dermot Paikkos
0 siblings, 0 replies; only message in thread
From: Dermot Paikkos @ 2001-01-08 17:18 UTC (permalink / raw)
To: tru64-unix-managers
<color><param>0100,0100,0100</param>Hi Managers,
Alpha 3000/400
OS 4.0D
I resisted the urge to post this message because I thought there
would be an obvious answer but I can't find one.
We run a small database on our system and have programs whi</color>ch
<color><param>0100,0100,0100</param>sits over the top. A program has been written which I need to run
once a week. The program is fully automatic and requires no user
input. The program closes the database ( to release any records
which it thinks are still being edited), and then generates a list of
reports...etc) I called the program from a script so I could get a log
of the programs activity. </color><smaller>The program and the script will run from the
command line<color><param>0100,0100,0100</param><bigger>. I ran the script from "at" and that worked fine. But I
can not get the program to run from cron and I hate to admit it but
it no longer runs from at.
Here's the script.
<smaller>PATH=/sbin:/usr/sbin:/usr/bin:/usr/desk
DESK=/usr/desk/
SPL=/usr/spl/
ROOTLOG=/usr/root/logs/
export PATH DESK SPL ROOTLOG<bigger>
<smaller>cd /usr/spl
echo "Date is:\c"
date
echo "Date is:\c" > ${ROOTLOG}webupdate.log
date >> ${ROOTLOG}webupdate.log
echo "Starting webupdate script..."
echo "Starting webupdate script..." >> ${ROOTLOG}webupdate.log
2>&1
/usr/desk/dtproc_a /usr/spl/au19e.dto # This is the line which I need.
sleep 80
echo "Restarting meta4 database..."
echo "Restarting meta4 database..." >> ${ROOTLOG}webupdate.log
2>&1
/usr/root/bin/m4_19 start # This just re-starts the database
# just incase the program fails to.
echo "Webupdate script has been run."
echo "Webupdate script has been run." >> ${ROOTLOG}webupdate.log
2>&1
echo "Time is now:\c"
date +%H:%M:%S
echo "Time is now:\c" >> ${ROOTLOG}webupdate.log
date +%H:%M:%S >> ${ROOTLOG}webupdate.log
I have tried to add the above line directly into cron but this didn't work. I
tried "exec /usr/desk/dtproc_a /usr/spl/au19e.dto" this didn't work. Now
the script runs and I get output from cron, but the whole script is
completed in 30 seconds. There also seems to be output missing from
the cron mail. Below is the mail I receive. Where is the "Date is " or the
"time is now" statement?
</color>Log file /usr/root/logs/startMetaFour.log
Sun Jan 7 04:00:00 GMT 2001
Starting MetaFour
<color><param>7F00,0000,0000</param>> dtdbms DESK
> dtdbms SPL
> mftcps DESK
> mftcps SPL
</color>/usr/root/bin/m4_19: 16703 Killed
<color><param>7F00,0000,0000</param>> Killing LS9
> Starting LS9
</color>MetaFour Started.
Sun Jan 7 04:00:20 GMT 2001
<color><param>0100,0100,0100</param>I spoke to the developers and they say they have no problems running
such programs from cron and suggest it is a problem with my
installation.
Does any one have any ideas? Is there anything else I can try?
Thanx
Dp.<bigger>
<nofill>
~~
Dermot Paikkos * dermot@sciencephoto.com
Network Administrator @ Science Photo Library
Phone: 0207 432 1100 * Fax: 0207 286 8668
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-01-08 17:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-08 17:18 executing programs from cron Dermot Paikkos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox