![]() |
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 |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Please help to modify my script | Renjesh | Shell Programming and Scripting | 6 | 05-21-2008 08:08 AM |
| Request to modify script to list multiple parameters for V_fieldid variable | Sammy | Shell Programming and Scripting | 0 | 03-30-2008 08:08 PM |
| Modify Perl script to work with txt - Permissions script | joangopan | Shell Programming and Scripting | 1 | 09-12-2007 11:38 PM |
| Modify FTP script to have SCP | madhunk | Shell Programming and Scripting | 2 | 04-26-2006 03:35 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Here is request script:
Code:
#!/bin/sh
echo "Current install root path is [ $BASEDIR ]"
CONFIRM="n"
while [ "$CONFIRM" != "y" ]
do
BASEDIR=""
while true
do
echo please input install root path then press [ENTER]:
read BASEDIR
if [ ! -d "$BASEDIR" ]
then
echo "$BASEDIR is not a valid path"
else
break
fi
done
echo "Are you sure to change install root path to [ $BASEDIR ]? (y/n)"
read CONFIRM
done
cat >$1 <<!
BASEDIR='$BASEDIR'
!
echo "Install root path is set to [ $BASEDIR ]"
exit 0
The problem is, the package is still installed to the default BASEDIR - "/" rather than the above one. ![]() Any help will be appreciated! ![]() |
|
||||
|
Noop....basically that's how UNIX works, you never know what's going on behind the scene.
BASEDIR is a default environment variable. It represents where the root install path, based on Sun document and my understanding. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|