Hi,

from a perl script, I execute the following system call:
unless (system ("wep $_ status |grep alive >/dev/null")) {
                #wenn erreichbar upgrade fahren, output pr�fen
                unless (system ("wadminep $_ upgrade |grep SUCCESS
>/dev/null")) {
                        #fehlercode f�r erfolg
                        $EP{$_}=0;
                }
                else {
                        #fehlercode f�r fail
                        $EP{$_}=1;
                }
                
                }
        else {
                #fehlercode f�r nicht erreichbar
                $EP{$_}=2;
                }
        }

the system call first returns some error message (which I could ignore) and
afterwards the "SUCCESS" message. But i do get $EP{$_}=1, so I guess, the
grep returns after getting the first message. When I do the systemcall at
the prompt, I just get the "SUCCESS" line back, as it should be.
Any ideas?

regards, Lars

----------------------------------------------
Lars Oeschey - Saturn Media GFI
Projektleitung Tivoli
visit WARKRAFT @ http://www.mp3.com/warkraft 

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to