Thread 2 commandos ausführen: wie? (6 answers)
Opened by pktm at 2004-07-08 17:53

renee
 2004-07-08 18:00
#12554 #12554
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
my $cmd_one = '';
my $cmd_two = '';
if(open(CMD_ONE,"$cmd_one |")){
 while(my $line = <CMD_ONE>){
   print "Ausgabe Prog1: ",$line,"\n";
 }
 close CMD_ONE;
 if(open(CMD_TWO,"$cmd_two |")){
   while(my $line = <CMD_TWO>){
     print "Ausgabe Prog2: ",$line,"\n";
   }
   close CMD_TWO;
 }
 else{
   print $cmd_two," konnte nicht ausgeführt werden! \n";
 }
else{
 print $cmd_one," konnte nicht ausgeführt werden!\n";
}
\n\n

<!--EDIT|renee|1089295394-->
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread 2 commandos ausführen: wie?