u are wrong here:
  @Output = `cmd` ;

it should be:
  @Output = `$cmd` ;


2005/9/26, Nath, Alok (STSD) <[EMAIL PROTECTED]>:
> 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>
>
>
>


--
  Jeff Peng
  [EMAIL PROTECTED]

--
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