![]() |
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 |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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. |
|
||||
|
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. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|