Thread WGET aus Perl ausführen (6 answers)
Opened by jan99 at 2011-06-17 09:01

GwenDragon
 2011-06-17 09:27
#149690 #149690
User since
2005-01-17
14783 Artikel
Admin1
[Homepage]
user image
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;

View full thread WGET aus Perl ausführen