Thread WGET aus Perl ausführen
(6 answers)
Opened by jan99 at 2011-06-17 09:01
Teste mal den Schnippsel und passe den Pfad zu wget an!
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 #!perl use strict; use warnings; $ENV{PATH} = 'P:\WGet;' . $ENV{PATH}; my $link = 'http://www.example.org'; my $file = 'test.txt'; print "download on work....\n"; my $WGET_command = "wget ".$link." -O ".$file; print "WGET-Command: ".$WGET_command."\n"; my $status = system($WGET_command); print $status; |