I haven't used the wget program before, but try adding a comma after your -O. I did that and I got it working.
Jan Eden <[EMAIL PROTECTED]> wrote:Hi, I try to call wget using system like this: system("wget -O /dev/null", "http://janeden.org/test/file.txt"); This does not work: Can't exec "wget -O /dev/null": No such file or directory at ./wgetrec.pl line 6. Ok, so how about this: system("wget", "-O /dev/null http://janeden.org/test/file.txt"); No go: wget: missing URL Without additional options, system("wget", "http://janeden.org/test/file.txt"); works fine. How can I pass an option to system's first argument in a setting like this? (I know I can use a module instead of calling wget, but this is a more general issue.) Thanks, Jan -- If all else fails read the instructions. - Donald Knuth -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com