![]() |
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 |
| Request to modify script to list multiple parameters for V_fieldid variable | Sammy | Shell Programming and Scripting | 0 | 03-30-2008 09:08 PM |
| unix script http request | arksal | UNIX for Dummies Questions & Answers | 1 | 08-24-2006 11:15 PM |
| a request for help... | patrick99e99 | UNIX for Advanced & Expert Users | 1 | 07-25-2006 03:50 AM |
| request born script for creting backup files | vinaysamineni | Shell Programming and Scripting | 6 | 09-15-2005 01:46 PM |
| Request sed help | anjaan | UNIX for Dummies Questions & Answers | 2 | 03-08-2005 07:13 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
The value of $1 is the installers answer.
ie: If the user answers loghostdr then $1 is LOGHOSTSRVR=loghostdr The request script is part of a package that I am building. There are six types of scripts you can create when creating a Solaris package. You do not need to have all these scripts, you only use what you need. The scripts get run in the following order. 1. request 2. checkinstall 3. preinstall 4. postinstall 5. preremove 6. postremove My package does not use a checkinstall script, but it does have the rest. The request script is what is used if user interaction is needed and the values should be made available to any of the following scripts. In my postinstall script I have added echo statements to see what values it knows about. echo $1 echo $LOGHOSTSRVR These are both empty.. I have tried to export the value in the request script aswell with no success. I need help from someone that knows about creating Solaris packages and that has created packages that need to have a request script. |
|
|||||
|
Tornado,
The script itself looks fine to me. Remember $1 is not the user answer, it is the location of the temporary response file. An important point however is that every environment variable that you set should be defined in the pkginfo file. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|