![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Returning Strings from C program to Unix shell script | venkatesh_sasi | High Level Programming | 24 | 11-28-2007 04:48 AM |
| returning to the parent shell after invoking a script within a script | gurukottur | Shell Programming and Scripting | 5 | 09-26-2006 07:05 AM |
| Returning Strings from C program to Unix shell script | satguyz | High Level Programming | 11 | 12-30-2005 03:41 PM |
| find command not returning any result | rraajjiibb | UNIX for Advanced & Expert Users | 4 | 07-23-2004 05:05 PM |
| Returning Values (shell Script) | jennifer01 | Shell Programming and Scripting | 3 | 11-29-2001 06:31 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
The shell script is not returning proper result
Can anybody pls look into this script and tell me where I went wrong. After running this script, it is showing like "Trying to overlay current working directory ABORT!!!"
:-( ARGCNT=$# if [ "${ARGCNT}" -ne 2 ] then echo "Two parameters are needed for this shell " echo "Please try again with the following parms: " echo "first parm = release " echo "second parm = fully qualified tar file name " echo " " exit 1 else RELEASE=$1 TARFILE=$2 fi ############################################################### ### verify release exists ############################################################### if [ ! -d ~/${RELEASE} ] then echo "Release ${RELEASE} does not exist!" echo "Verify parameters and try again" echo " " exit 1 fi ####################################################### ### verify tar file exists ####################################################### if [ ! -a ${TARFILE} ] then echo "Tar file ${TARFILE} does NOT exist!" echo "Verify parameters and try again" echo " " exit 1 fi if ll ~/active | grep ${RELEASE} then echo "Trying to overlay current working directory ABORT!!!" exit 99 else cd ~/${RELEASE} chmod -R u+w * zcat ${TARFILE} | tar xvf - chmod -R u-w * echo " " echo "loadTarFile.sh DONE" fi |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|