Hi, 
        Any idea why I am getting this error message ?

        C:\tmp\Scripts>The process tried to write to a nonexistent pipe.
        The process tried to write to a nonexistent pipe.
        The process tried to write to a nonexistent pipe.

        I am trying to run a dir command in the below code.

Thanx,
Alok


sub ExecCmd{
        $cmd = "dir" ;
        print "before executing .. $cmd\n" ;
        @Output = `cmd` ;
        
        print "after executing ..$cmd\n" ;

        LogMessage("Executing $cmd");
        foreach my $line (@output) {
                LogMessage($line);
        }
}

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to