From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075324106531.tru64-unix-managers.marc@archive.invalid> From: Chris Glenister Date: Tue, 10 Oct 1995 16:35:28 +0000 To: tru64-unix-managers Subject: SUMMARY - Running Scripts Using Crontab X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075324106531 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 ----------------------------------------------------------------------------------------------------------------------