Thread Url mit Perl öffnen (3 answers)
Opened by der_thomas at 2014-02-16 13:12

Linuxer
 2014-02-16 13:26
#173566 #173566
User since
2006-01-27
3875 Artikel
HausmeisterIn

user image
Naja,

versuch das doch mal per system()-Call zum firefox mit URL aus Argument.

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
my $url = "http://www.example.org";

my @cmd = ( 
  '/path/to/firefox',
  # maybe additional options for firefox
  # url(s) to open
  $url,
);

system( @cmd ) == 0 
  or warn "Could not load '$url' with firefox: $!\n";
meine Beiträge: I.d.R. alle Angaben ohne Gewähr und auf Linux abgestimmt!
Die Sprache heisst Perl, nicht PERL. - Bitte Crossposts als solche kenntlich machen!

View full thread Url mit Perl öffnen