Thread Systembefehl gültig ? (17 answers)
Opened by BrownWolf at 2003-09-28 00:03

Strat
 2003-09-30 13:39
#57768 #57768
User since
2003-08-04
5246 Artikel
ModeratorIn
[Homepage] [default_avatar]
wieso nicht einfach:
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
my $command = 'dir /b';
unless (open (CMD, "$command |")) {
  # irgendeine Fehlerbehandlung, z.B.
  die "Error in executing command: '$command': $!";
} # unless
else {
  my @result = <CMD>;
  close(CMD) or die "Error in finishing command '$command': $!";
} # else
perl -le "s::*erlco'unaty.'.dk':e,y;*kn:ai;penmic;;print"
http://www.fabiani.net/

View full thread Systembefehl gültig ?