in reply to pipes on NT

Here are some things to try:

What happens if you try to pipe to app.exe from the command line? e.g.

echo the -command | app.exe

What happens if you add a cmd to your open? e.g.

open(TEST, "| cmd.exe app.exe");
--
You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.

Replies are listed 'Best First'.
Re: Re: pipes on NT
by Avox (Sexton) on Feb 05, 2003 at 23:14 UTC
    The tricky part is that app.exe starts a console application (in effect becomes a new shell). app.exe does not accept just any command. You have to wait till it starts, then enter your commands.

    As to your suggestions, I get the same error when piping from command line. I believe that app.exe is not set up to accept input from pipes.

    Good news is that I found the code for app.exe. So now I get to figure out whats going on in there (written in C). Ah, what a slippery slope. ;D

    Thanks for the input!
      As to your suggestions, I get the same error when piping from command line. I believe that app.exe is not set up to accept input from pipes.
      That's the intention of the test. ;)

      Best of luck!

      --
      May the Source be with you.