comp.lang.ada
 help / color / mirror / Atom feed
From: "James E. Hopper" <hopperj@macconnect.com>
Subject: Re: Using Jim Rogers' "Ada Binding to Pipes"? (Was: SSH Sessions?)
Date: Sat, 14 Aug 2004 18:45:25 GMT
Date: 2004-08-14T18:45:25+00:00	[thread overview]
Message-ID: <140820041446316991%hopperj@macconnect.com> (raw)
In-Reply-To: 2o4d0kF6f1hsU1@uni-berlin.de

when building and running pipes after putting in the fix previously
mentioned in this thread i get

"Attempt illegal input from a pipe to the tee command:
Detected improper attempt to read from a pipe opened for write only."


from looking at the test program this seems the correct response as
written, even though its not obvous from the output that this is
expected.  code in question is:

      FileStream := execute(command4, write_file);
      begin
         print_buf(FileStream);
         exception
            when Access_Error =>
               put_line ("Detected improper attempt to read from a pipe
opened for write only.");
      end;


FileStream is opened for write, then in print_buf the code attempts to
read from the stream.  

is the test trying to force an error to demonstate that it works, or is
there something in using this with osx that makes this wrong?

thanks jim



  reply	other threads:[~2004-08-14 18:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-09 18:32 SSH Sessions ? Chris Humphries
2004-08-09 19:12 ` Georg Bauhaus
2004-08-10  1:54   ` Chris Humphries
2004-08-10  2:49     ` Stephen Leake
2004-08-11  6:57     ` Andreas Almroth
2004-08-10  4:32   ` Adam Ruth
2004-08-10 12:58     ` Marc A. Criley
2004-08-11 13:35       ` Chris Humphries
2004-08-13 11:48       ` Using Jim Rogers' "Ada Binding to Pipes"? (Was: SSH Sessions?) Jacob Sparre Andersen
2004-08-13 17:44         ` Marc A. Criley
2004-08-14 18:45           ` James E. Hopper [this message]
2004-08-17 15:29             ` Using Jim Rogers' "Ada Binding to Pipes"? Jacob Sparre Andersen
2004-08-18  1:15               ` James E. Hopper
2004-08-16 16:28           ` Using Jim Rogers' "Ada Binding to Pipes"? (Was: SSH Sessions?) Anh_Vo
2004-08-17 15:28             ` Jacob Sparre Andersen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox