The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to script wget in bash? siegfried Shell Programming and Scripting 1 12-25-2007 03:57 AM
here document to automate perl script that call script hogger84 Shell Programming and Scripting 3 10-22-2007 10:15 AM
How to call a perl script from a shell script anumkoshy Shell Programming and Scripting 2 08-30-2007 04:23 AM
how to call a perl script from tcsh? megastar Shell Programming and Scripting 1 10-22-2005 05:48 PM
how can call perl script as command? umen UNIX for Dummies Questions & Answers 1 10-14-2005 09:43 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-13-2005
rahulrathod rahulrathod is offline
Registered User
  
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 158
Lightbulb Wget call in a Perl script

I've got to do a wget call in a Perl Script.

I am basically doing migration of a shell script which was previously doing it.
The code in the sh file was as follows.

wget -nv -o /tmp/wget.run.log -t 5 -w 10 http://windows-server/myapp/1try.asp?myparam=no

This wget command is executing an ASP page on a remote IIS server.

Now, this command will create a file with the name 1try.asp?myparam=no in my current directory.

The sh script actually runs many wget commands and creates many such files. Ultimately I do a cat on all files and redirect the o/p to a single csv file.
This csv file is then used by sqlldr to load into the DB.

The whole process seems very complicated and hence i want to replace this sh script wth a perl script.
Do let me know if I can exclude the use of wget and use something else.
Also, if I have to use wget how can I make the process smoother and less complicated and easy to implement and maintain.

Thanks,
Rahul.
  #2 (permalink)  
Old 12-28-2005
rahulrathod rahulrathod is offline
Registered User
  
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 158
I've done something

But this is untested. So I need your views on it.

unless( `$WGET -nv -o /tmp/wget.asp.log -t 5 -w 10 http://windows-server/myapp/1try.asp?myparam=no` )
{
print " Cannot execute http://windows-server/myapp/1try.asp?myparam=no on the Soft-Ex Server\n";
}

Also I cannot test this as i don't have access to this server where the asp file is. But still i need to write the code. Please help.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:39 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0