On Wed, 3 Jan 2007, Edouard Zorrilla wrote:
-------------------------------------------
bash-2.03# more /export/home/ezorrilla/cpbackup.sh
FWDIR=/opt/CPfw1-54
export FWDIR
YYMMDD=`getdate`
$FWDIR/bin/upgrade_tools/upgrade_export -n
/export/home/ezorrilla/BKP-CONFIG-$YYMMDD
bash-2.03#
-------------------------------------------
Well. Apart from the recommendation to use existing code to set your
environment there is the bangpath line that should have started your
script. The bangpath line defines in fact the interpreter for the script
and leaving it out may result in unpredictable results.
So make sure to open the script with the bangpath: #!/bin/sh
Considering that csh the default shell on Solaris it would explain part of
your problem.
Hugo.
--
[EMAIL PROTECTED] http://hvdkooij.xs4all.nl/
This message is using 100% recycled electrons.
=================================================
To set vacation, Out-Of-Office, or away messages,
send an email to [EMAIL PROTECTED]
in the BODY of the email add:
set fw-1-mailinglist nomail
=================================================
To unsubscribe from this mailing list,
please see the instructions at
http://www.checkpoint.com/services/mailing.html
=================================================
If you have any questions on how to change your
subscription options, email
[EMAIL PROTECTED]
=================================================