Operating System - Linux
1827769 Members
2690 Online
109969 Solutions
New Discussion

Calling a url from a script

 
Jason_309
Regular Advisor

Calling a url from a script

I need to be able to call a url from a script. Can some one point me in the correct direction please?
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: Calling a url from a script

Hi Jason:

You need to provide a bit more about what it is you want to achieve.

If by "script" you mean a shell script, I'd suggest 'wget' as one choice. 'wget' will download files for you.

If by "script" you mean Perl code and a Perl script, then there are a multitude of modules available to do your bidding --- collect and parse information. You might begin with the 'LWP::Simple' module from CPAN, for example.

Regards!

...JRF...

Jason_309
Regular Advisor

Re: Calling a url from a script

What i am trying to do is call a url in a script on unix. The url is a oracle form.
Court Campbell
Honored Contributor

Re: Calling a url from a script

jason,

as already stated look into perl and the lwp package. here is a link to a good book on using perl and lwp:

http://www.oreilly.com/catalog/perllwp/

you might google some example scripts to get an idea of how to use the package.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"