Gurus, As always, thank you for your timely and accurate responses. Special thanks to 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`" 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 Paul Fiengo DISA FSO / CACI COM: 717.267.9361 DSN: 570.9361 _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived 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