Hi Jesse.
> cmd_set = ['wget', '-nv', '-O dir/cpan.txt', 'http://search.span.org']
[snip]
>proc = Popen(cmd_set, stdout=PIPE, stderr=PIPE)
wget will treat this as
$ wget -nv '-O dir/cpan.txt' "http://search.cpan.org";
And will emit the following error because there's no pathname ' dir/cpan.txt'.
Thx Rob!
Your solution works perfect!
"Rob Wolfe" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Jesse" <[EMAIL PROTECTED]> writes:
>
>> Hi all, I have a problem using wget and Popen. I hope someone can help.
>>
>>
>> -- Problem --
>> I want to use the command:
>> wget -nv -O "d
"Jesse" <[EMAIL PROTECTED]> writes:
> Hi all, I have a problem using wget and Popen. I hope someone can help.
>
>
> -- Problem --
> I want to use the command:
> wget -nv -O "dir/cpan.txt" "http://search.cpan.org";
> and capture all it's stdout+stderr.
> (Note that option -O requires 'dir' to be ex
Hi all, I have a problem using wget and Popen. I hope someone can help.
-- Problem --
I want to use the command:
wget -nv -O "dir/cpan.txt" "http://search.cpan.org";
and capture all it's stdout+stderr.
(Note that option -O requires 'dir' to be existing before wget is executed)
Popen doesn't work