I need to run wget from a perl script and assign the output to a variabel, that I can do. The problem I have is sometimes the wget takes too long. How can I fork the wget part and then kill that process if it is still running after 60 seconds? I tired fork but wget get it's own pid which is different from the child. Anyone have any ideas on how to fork wget and kill it after 60 seconds? I also tried the timeout settings form wget - they do not work.
Thanks in advance,
Ellick