HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- invoking a function with a parameter
Operating System - HP-UX
1833694
Members
3665
Online
110062
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
10-14-2003 01:32 AM
10-14-2003 01:32 AM
invoking a function with a parameter
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2003 01:40 AM
10-14-2003 01:40 AM
Re: invoking a function with a parameter
Hi
see
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90046/B2355-90046_top.html&con=/hpux/onlinedocs/B2355-90046/00/01/137-con.html&toc=/hpux/onlinedocs/B2355-90046/00/01/137-toc.html&searchterms=function&queryid=20031014-073531
Steve Steel
see
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90046/B2355-90046_top.html&con=/hpux/onlinedocs/B2355-90046/00/01/137-con.html&toc=/hpux/onlinedocs/B2355-90046/00/01/137-toc.html&searchterms=function&queryid=20031014-073531
Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2003 01:47 AM
10-14-2003 01:47 AM
Re: invoking a function with a parameter
What is your question?
If you defined a function in your current shell or in a script then you simply invoke it like any unix command.
You can check with "typeset -f" which functions were defined (in sh-posix).
Without any sanity checks here definition is as simple as
# add() { echo $(($1 + $2)); }
and invocation
# add 3 5
8
If you defined a function in your current shell or in a script then you simply invoke it like any unix command.
You can check with "typeset -f" which functions were defined (in sh-posix).
Without any sanity checks here definition is as simple as
# add() { echo $(($1 + $2)); }
and invocation
# add 3 5
8
Madness, thy name is system administration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2003 01:48 AM
10-14-2003 01:48 AM
Re: invoking a function with a parameter
hi Maciej,
where is ur question or is the subject the question. can u pl explain a little more.
aparna
where is ur question or is the subject the question. can u pl explain a little more.
aparna
If you don't have time to do it right you must have time to do it over
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP