Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving

Status
Not open for further replies.

smileyone

Technical User
Jul 5, 2000
18
0
0
US
I am currently working on a PERL script to help automate some processes.&nbsp;&nbsp;This may be a silly question, but I have to ask.&nbsp;&nbsp;Is there a way to connect to an http and save a specific page?&nbsp;&nbsp;(i.e. I connect to <A HREF=" TARGET="_new"> and save new.txt)&nbsp;&nbsp;I need to do it without opening netscape (hence automation).&nbsp;&nbsp;I know the names of the sites and files.&nbsp;&nbsp;Is there a way?
 
Is this the only way to go about this problem?&nbsp;&nbsp;I just like to know other aspects just in case.
 
That is the most concise way I know of, so far.&nbsp;&nbsp;<br><br>One of the Perl mottos is 'There's more than one way to do it.&quot;&nbsp;&nbsp;And, it is true.&nbsp;&nbsp;So, no,..... that is not <i>the only way to go about the problem</i>.&nbsp;&nbsp;<br><br>If you are interested in the details, you can look at the documentation and contents of the LWP module or read up on the HTTP specifications.&nbsp;&nbsp;That is where I would start, anyway.<br><br>good luck. <p> <br><a href=mailto: > </a><br><a href= > </a><br> keep the rudder amid ship and beware the odd typo
 
<br>Anyone got any links to any of these?<br><br>&gt;look at the documentation and contents of the LWP module &gt;or read up on the HTTP specifications.<br> <p>fortytwo<br><a href=mailto:will@hellacool.co.uk>will@hellacool.co.uk</a><br><a href= test site</a><br>
 
You *could* just put the lib file (the .pm I presume you mean) in the same directory as the perl script..... Probably a good idea to beg though, particularly as this module seems such a good match to what you need. <p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
I humbly suggest that if you are going to be doing this kind of stuff with Perl, you are going to periodically need new modules installed.&nbsp;&nbsp;There is enormous economy to be gained in using existing modules.&nbsp;&nbsp;A solid cost/benefit case can be made.&nbsp;&nbsp;I would go ahead and start cultivating a good relationship with your sys-admin (or , start rebuilding one if need be) <p> <br><a href=mailto: > </a><br><a href= > </a><br> keep the rudder amid ship and beware the odd typo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top