![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Call shell script from php not run ? | raccsdl | Shell Programming and Scripting | 2 | 11-19-2007 08:21 AM |
| To call/execute a shell script from a shell script | konark | UNIX for Dummies Questions & Answers | 1 | 10-26-2007 05:16 PM |
| how can i call a shell script from pl/sql | rajesh.P | Shell Programming and Scripting | 3 | 09-16-2007 11:09 PM |
| how can a call shell script from pl/sql | rajesh.P | UNIX for Dummies Questions & Answers | 0 | 09-14-2007 02:42 AM |
| How to call a shell script from awk ? | Amruta Pitkar | Shell Programming and Scripting | 1 | 04-20-2007 04:35 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
URL call from SHELL script
My system does not have wget, curl and lynx. The chances are low that the SA would install them for me. Do I have any other way out? I need to invoke a few URL calls from my SHELL script.
Thought of using a PERL script or writing a simple Java client, but that adds in more dependencies. Any idea? |
|
||||
|
For Perl, preferably LWP module is used for HTTP.
But for plain vanilla HTTP, if you can't really install LWP (note that you can download and install the module together with the script and not install it systemwide), a simple sequence of commands will do it: Code:
use IO::Socket::INET;
$http = IO::Socket::INET->new(
PeerAddr => "www.unix.com:80",
Proto => "tcp"
);
$http->print("GET /showthread.php?t=37182 HTTP/1.0\nHost: www.unix.com\n\n");
print $http->getlines();
|
|
||||
|
Quote:
Unfortunately for me, Python is also not installed. Guess I'll have to use Perl then. Thanks! |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| solaris |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|