tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Brehl, Blake" <Blake.Brehl@anritsu.com>
To: tru64-unix-managers@ornl.gov
Subject: ksh script question
Date: Tue, 18 Mar 2008 15:59:33 -0700	[thread overview]
Message-ID: <06919C2CEC2A8D46A394A43403A52CFD7CCD4F@moh-exc-006.main.intgin.net> (raw)

Hello Admins,
 
trying to have a script that will write to a NFS mounted drive, but will
write to a local drive if the NFS mounted one is not available.  Trying
this with a cd to the local drive 1st, then a cd to the NFS mounted one
2nd.
 
#!/bin/ksh
LOCALDRV=/home/users/mfg/xxbusint1; export LOCALDRV
NFSDRV=/home/whlzdev/xxbusint1; export NFSDRV
 
cd $LOCALDRV; sleep 1
cd $NFSDRV
 
exec /someexecutable
 
When either the Local or NFS drives aren't there, the 'cd' command
returns an error value of >0 and exits the shell script.
 
Any suggestions?
 
 
Blake Brehl
Sys Admin/DBA
Anritsu Company United States
Morgan Hill, CA
blake.brehl@anritsu.com
 

 


             reply	other threads:[~2008-03-18 22:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-18 22:59 Brehl, Blake [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-02-23 14:03 ksh script question SIMEONE, Allan J.
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