SUMMARY: Script Issue

From: Fiengo, Paul (Contractor) <>
Date: Thu Jan 16 2003 - 16:21:17 EST

As always, thank you for your timely and accurate responses.  Special thanks

Mike Kail
Dan Astoorian and
Matthew Stier

All correctly identified that my "test" is testing the string returned by
mkdir and not the status of the command.  My script is now functioning
properly and I am greatly appreciative of your time.

My initial post is listed below.

TKS !!!

Paul Fiengo

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


		chmod 770 $EXPPERMDIR/export_$archiveid

		chown root:luminex $EXPPERMDIR/export_$archiveid


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



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.


Paul Fiengo

Paul Fiengo
COM:  717.267.9361
DSN:  570.9361
sunmanagers mailing list
Received on Tue Jan 21 10:36:48 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:02 EST