- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ksh error "parameter not set"
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2000 04:42 AM
09-07-2000 04:42 AM
I want to run it in the current shell.
How do I get past the error message as shown below. I have included the script and the output.
TIA
>cat tmap
if [ "${PROTOCOL_name}" = "" ]
then
echo enter protocol name
read PROTOCOL_name
fi
>. tmap
ksh: PROTOCOL_name: parameter not set
>
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2000 05:46 AM
09-07-2000 05:46 AM
Re: ksh error "parameter not set"
Try:
if [ -z "${PROTOCOL_name}" ]
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2000 05:53 AM
09-07-2000 05:53 AM
Re: ksh error "parameter not set"
-z Operator The -z operator tests to determine if the string?s length is zero.
-n Operator The -n operator tests to determine of the string?s length is non-zero.
I would also unset the variable upfront.
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2000 05:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2000 05:55 AM
09-07-2000 05:55 AM
Re: ksh error "parameter not set"
This does not work under the original scenerio.
Thanks
The set +u does the trick.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2000 06:02 AM
09-07-2000 06:02 AM
Re: ksh error "parameter not set"
You solution also works. Thanks.
Now I have to choose:).
I guess I will make one of you unhappy.
Well, I will not tell you which one I chose.
You can fell as good or bad as you want!!
Thanks again.