- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Where have my command line parameters gone?
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
03-30-2004 09:05 PM
03-30-2004 09:05 PM
Question is where have the parameters gone to and how do I access them ?
Thanks in advance
Gordon
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 09:23 PM
03-30-2004 09:23 PM
Re: Where have my command line parameters gone?
use CGI;
$page=new CGI;
$name=$page->param('name');
for more information :
http://www.perldoc.com/perl5.8.0/lib/CGI.html
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 09:31 PM
03-30-2004 09:31 PM
Re: Where have my command line parameters gone?
Example :
http://121.0.1.1/docsearch.pl?"op:op"+""+"op_order_entry:order_entry"+"main"+"sub1"
Obviously this gets parsed by something - what ? And where is thge parsed result; I don't have the time or inclination to learn mod_perl.
The alternative of course is parse it myself so how do I get Apache to run perl without CGI or mod_perl ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 10:06 PM
03-30-2004 10:06 PM
SolutionIn a perl script started from apache, without any fancy modules, arguments are not passed to the script but are available the environment. For example, if your script where to parse form data from an html form, you would do something like the following.
The arguments will be, in fact, passed as one string separated by "&" into the environment variable "QUERY_STRING". You can get at them with something like.
@ARGARRAY=split "&", $ENV{QUERY_STRING};
Then you can, for example, get the first set like this
($variable,$value)=split "=", $ARGV[1];
Perl modules may handle it differently but I have never used any of the CGI modules.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 10:21 PM
03-30-2004 10:21 PM
Re: Where have my command line parameters gone?
That was the clear concise answer I have spent two days searching the Web for.
Enjoy the 10 points
Gordon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 08:22 PM
03-31-2004 08:22 PM
Re: Where have my command line parameters gone?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 08:45 PM
03-31-2004 08:45 PM
Re: Where have my command line parameters gone?
I set up the points and sent the reply - but it seems that the system only carried out the last task.
Points now assigned and thanks again.
G