HTTP Query Request & Parsing returned XML output


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting HTTP Query Request & Parsing returned XML output
# 15  
Old 05-18-2005
Quote:
Originally Posted by cbkihong
I don't have most of these modules installed systemwide for my projects. I just extract them, put them at appropriate places in my source project dirs and point @INC to there, and they will work. At least, non-compiled modules can be installed likewise, to avoid having to always rely on the system offerings.
Thanks cbkihong. I suppose you are referring to modules that are written in PERL alone and could you explain how to use @INC option. Assuming the following was my source directory.

/home/mmt1234/PERL/src/

and I have the XML::XPATH modules in the current folder, how would I

1) include the local modules in the program in the src folder and
2) use the @INC option. Thanks Jerardfjay Smilie
# 16  
Old 05-18-2005
use the "use lib" pragma at the top of your script. Point to where the modules will be found, excluding the path segment corresponding to the package name.

I am working on a Windows machine right now, so for illustration I will use Windows-style paths but you can just likewise translate to Unix paths.

I extracted the .pm files in the archive to C:\temp\XML\. The folder structure should be preserved. So there is a C:\temp\XML\XPath.pm and some other modules in C:\temp\XML\XPath\. Here, I just put

use lib 'C:\\temp';

in my test script then it will be able to find the module when I do a

use XML::XPath;

"use lib" will modify @INC to include the new module path information. This is the easiest way to "install" a module when the sysadmin refuses to install custom modules (e.g. free or even some paid CGI hosts will not do this). I guess if you have shell access and can pass some parameters to the Makefile to modify the output directory, you may be able to install compiled modules in private too, though I have not tried this out myself.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SQL query output convert to HTML & send as email body

Hi , I have a sql query in the unix script ,whose output is shown below.I want to convert this output to HTML table format & send email from unix with this table as email body. p_id src_system amount 1 A 100 2 B 200 3 C ... (3 Replies)
Discussion started by: jagadeeshn04
3 Replies

2. Shell Programming and Scripting

Parsing the http post request

Hi, I am trying to write a shell script to parse the post request data that it received to a xml file. Below is the post request data that script is receiving. -----------------------------7dd2339190c8e Content-Disposition: form-data; name="param1" 1... (2 Replies)
Discussion started by: jdp
2 Replies

3. Shell Programming and Scripting

Help in parsing XML output file in perl.

Hi I have an XML output like : <?xml version="1.0" encoding="ISO-8859-1" ?> - <envelope> - <body> - <outputGetUsageSummary> - <usgSumm rerateDone="5"> - <usageAccum accumId="269" accumCaptn="VD_DP_AR" inclUnits="9999999.00" inclUnitsUsed="0.00" shared="false" pooled="false"... (7 Replies)
Discussion started by: rkrish
7 Replies

4. Shell Programming and Scripting

http request

I am running a website but I still have problems with the "service temporarily unavailable error". I want to make a simple check if the website is up and running. Does anybody has an idea how to do it? (the site is password protected, so you have to add a user and pwd before logging in). ... (2 Replies)
Discussion started by: jurgen
2 Replies

5. Shell Programming and Scripting

Capture query returned values in file.

Hi All, I am connecting to Oracle DB from UNIX script. Want to capture all dates between start date and end date and store them in file. Once this is done, want to read dates one by one. How to achive this in UNIX and Oracle? Please let me know if you have any idea on the same. Thanks and... (4 Replies)
Discussion started by: Nagaraja Akkiva
4 Replies

6. Shell Programming and Scripting

Awk & sed query for output

Hello, I have a file. its content are like below. mdn:87439842 imsi:23082038203 Ctime:12082010 01:20:10 mdn:9324783783 imsi:402349823322 Ctime: 12072010 01:20:10 mdn:87439842 imsi:23082038203 Ctime: 23072010 01:20:10 mdn:87439842 imsi:23082038203 Ctime:18072010 01:20:10 mdn:87439842... (3 Replies)
Discussion started by: Sanket11
3 Replies

7. Shell Programming and Scripting

How to send XML data using HTTP Post Request

How to hit HTTP Post Request along with sending XML data to a Remote server through command line utility like wget (or anything else). (0 Replies)
Discussion started by: sandeep reddy
0 Replies

8. UNIX for Dummies Questions & Answers

HTTP request

Can anybody tell about http request processing in shell script..? (3 Replies)
Discussion started by: noufal
3 Replies

9. Shell Programming and Scripting

Http request in Linux

Hi, i need a guide how to write a script which i can do a http request. Let say the request look like below; http://www.test.com?txid=1&type=service&server=linux I have a list of "txid" (in *.txt) and need to run all "txid" acordingly. So that mean, every transaction i have to refer "txid"... (7 Replies)
Discussion started by: malaysoul
7 Replies

10. SCO

XML Import & HTTP Post

this may be very basic to some but all new to me I have an application running on SCO Unix server which issues an HTTP Post request to a server with the results being returned in I.E browser window in XML format I need to import these results into my customers application and dont know how to... (1 Reply)
Discussion started by: ccarcher
1 Replies
Login or Register to Ask a Question