From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,479138db2311e415 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!news-zh.switch.ch!switch.ch!news.hispeed.ch!linux2.krischik.com!news From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Newbie Question: using Text_IO.Open() to read from standard input Date: Thu, 13 Oct 2005 18:14:23 +0200 Organization: Cablecom Newsserver Message-ID: <2303137.6yz9d3qpho@linux1.krischik.com> References: <1129164557.586640.154480@g14g2000cwa.googlegroups.com> <1129167000.412296.80530@g43g2000cwa.googlegroups.com> <1129168120.924614.26250@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: 84-73-3-231.dclient.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.hispeed.ch 1129222802 22469 84.73.3.231 (13 Oct 2005 17:00:02 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Thu, 13 Oct 2005 17:00:02 +0000 (UTC) User-Agent: KNode/0.9.2 Xref: g2news1.google.com comp.lang.ada:5600 Date: 2005-10-13T18:14:23+02:00 List-Id: pamela.lum@gmail.com wrote: > Tried that (see the code below named test_cl.ada). It fails to detect > arguments after the redirect ("<" ) character in the command : Most commandline shells will strip the filename which follows "<" and ">" from the commandline. Instead they will use the filename to open a File an connect it to Standart_Input or Standart_Output of the newly created process. In fact: they will try to open the file *before* the program is started. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com