Script Issue

From: Fiengo, Paul (Contractor) (FiengoP@ritchie.disa.mil)
Date: Thu Jan 16 2003 - 15:25:41 EST


Dear Gurus,

I am having an issue with a portion of a script that I am writing. I am
testing on a SunBlade 1000 using Solaris 8 (02/02). The portion of the
script is as follows:

function createHF
{
        exec 4< $ASHOME/export_counter

        read -u4 archiveid

        if test "`mkdir -p $EXPPERMDIR/export_$archiveid`"

                then

                chmod 770 $EXPPERMDIR/export_$archiveid

                chown root:luminex $EXPPERMDIR/export_$archiveid

                return

                else echo `date` "archive_export... Unable to create
Export Permanent Directory. Please check system." >> $ASERRLOG

                exit

        fi
}

The scripts executes the above function and is able to create the directory
inside the "if" statement. However, instead of continuing through the
"then" statement, the script skips to the "else" statement entering the
message into a text file. I am unsure of why this is happening. Does
anyone have any ideas? I will summarize.

TIA,

Paul Fiengo
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:36 EDT