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.