tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY - Running Scripts Using Crontab
@ 1995-10-10 16:35 Chris Glenister
  0 siblings, 0 replies; only message in thread
From: Chris Glenister @ 1995-10-10 16:35 UTC (permalink / raw)
  To: tru64-unix-managers

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
----------------------------------------------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-10-10 16:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-10-10 16:35 SUMMARY - Running Scripts Using Crontab Chris Glenister

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox