From: Chris Glenister <crg () cranfield ! ac ! uk>
To: tru64-unix-managers
Subject: SUMMARY - Running Scripts Using Crontab
Date: Tue, 10 Oct 1995 16:35:28 +0000 [thread overview]
Message-ID: <96075324106531.tru64-unix-managers.marc@archive.invalid> (raw)
Dear Managers
My original question was that I had a script file which would backup an Oracle file system overnight. The script
would would run perfectly well interactively, but not when submitted it as a cron job.
sample script
#!/bin/sh
LOG=/site/logs/oracle.log
export LOG
# vdump Oracle file system to default tape device
vdump -0uN /u01 >> $LOG 2>&1
vdump -0u /u01 >> $LOG 2>&1
etc.....
Basically in the script, I had not include the full path for the "vdump" command e.g. /sbin/vdump and so it did not
perform a vdump on the file system, but continued to execute the rest of the script quite happily. When I ran the
script interactively I had /sbin in the path.
Thanks to the following people for pointing out the problem :-
Paul Casteels email: casteels@uia.ac.be
Liz Stewart email: liz@ece.neu
Crispin Harris email: crispin@communica.com.au.edu
Dave Wolonski University of Michigan
Regards
Chris
--------------------------------------------------------------------------------------------------------------------
Chris Glenister Email: C.Glenister@cranfield.ac.uk
SSLRC, Cranfield University
Silsoe
Bedford. MK45 4DT FAX: 01525 863253
----------------------------------------------------------------------------------------------------------------------
reply other threads:[~1995-10-10 16:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox