mido45 has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks
I want to some help with the following code:
my @array4=system'curl','-G','-x','127.0.0.1:8080','http:/ +/www.google.com' or die "system 'curl' failed: $?";
Output
curl: (7) couldn't connect to host
1792 #the process ID
I want to get the o/p of curl to directed to @array4 in order to make some checks
I tried this code to get the o/p to file
my @array4=system'curl','-G','-o',"result.txt",'-x','127.0.0.1:8080',' +http:/ +/www.google.com' or die "system 'curl' failed: $?";
So I could take the output from result.txt and check it but it did't work
If there are any ideas about how to solve it please reply
Thank you in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting curl o/p
by toolic (Bishop) on Feb 17, 2010 at 18:54 UTC | |
by mido45 (Novice) on Feb 17, 2010 at 19:28 UTC | |
by Corion (Patriarch) on Feb 17, 2010 at 20:07 UTC | |
by mido45 (Novice) on Feb 17, 2010 at 20:18 UTC | |
|
Re: Getting curl o/p
by zentara (Cardinal) on Feb 18, 2010 at 13:28 UTC |