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");
wget: missing URL
Without additional options,
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.)
If all else fails read the instructions. - Donald Knuth...