<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, How read from standard input in pipe?</title>
    <link>http://www.mapleprimes.com/questions/123516-How-Read-From-Standard-Input-In-Pipe</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Sat, 13 Jun 2026 04:08:26 GMT</lastBuildDate>
    <pubDate>Sat, 13 Jun 2026 04:08:26 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, How read from standard input in pipe?</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, How read from standard input in pipe?</title>
      <link>http://www.mapleprimes.com/questions/123516-How-Read-From-Standard-Input-In-Pipe</link>
    </image>
    <item>
      <title>reading source files into the GUI</title>
      <link>http://www.mapleprimes.com/questions/123516-How-Read-From-Standard-Input-In-Pipe?ref=Feed:MaplePrimes:How read from standard input in pipe?:Comments#answer123522</link>
      <itunes:summary>&lt;p&gt;You may see &lt;a href="http://www.mapleprimes.com/questions/98201-include-Type-Directive-For-Worksheets"&gt;this thread&lt;/a&gt; for options about reading source files into the GUI. And you may see &lt;a href="http://www.mapleprimes.com/questions/36910-Using-Maple-On-Console"&gt;here&lt;/a&gt; about reading source files into the CLI.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;You may see &lt;a href="http://www.mapleprimes.com/questions/98201-include-Type-Directive-For-Worksheets"&gt;this thread&lt;/a&gt; for options about reading source files into the GUI. And you may see &lt;a href="http://www.mapleprimes.com/questions/36910-Using-Maple-On-Console"&gt;here&lt;/a&gt; about reading source files into the CLI.&lt;/p&gt;</description>
      <guid>123522</guid>
      <pubDate>Sun, 03 Jul 2011 08:07:45 Z</pubDate>
      <itunes:author>Alejandro Jakubi</itunes:author>
      <author>Alejandro Jakubi</author>
    </item>
    <item>
      <title>pointer to example</title>
      <link>http://www.mapleprimes.com/questions/123516-How-Read-From-Standard-Input-In-Pipe?ref=Feed:MaplePrimes:How read from standard input in pipe?:Comments#answer123545</link>
      <itunes:summary>&lt;p&gt;It is possible to get this to work, see these &lt;a href="http://www.mapleprimes.com/posts/38232-Scripting-With-Maple"&gt;examples&lt;/a&gt;, (none precisely address your question, but the large example I gave uses readline to pipe stuff through maple) however, this generally is not the easy way to go and I do not see any compelling reason here for doing so.&amp;nbsp; Using readline and shell passing in maple, at least for me, has always been tricky.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;It is possible to get this to work, see these &lt;a href="http://www.mapleprimes.com/posts/38232-Scripting-With-Maple"&gt;examples&lt;/a&gt;, (none precisely address your question, but the large example I gave uses readline to pipe stuff through maple) however, this generally is not the easy way to go and I do not see any compelling reason here for doing so.&amp;nbsp; Using readline and shell passing in maple, at least for me, has always been tricky.&lt;/p&gt;</description>
      <guid>123545</guid>
      <pubDate>Sun, 03 Jul 2011 19:32:20 Z</pubDate>
      <itunes:author>Joe Riel</itunes:author>
      <author>Joe Riel</author>
    </item>
    <item>
      <title>reply to Joe</title>
      <link>http://www.mapleprimes.com/questions/123516-How-Read-From-Standard-Input-In-Pipe?ref=Feed:MaplePrimes:How read from standard input in pipe?:Comments#answer123547</link>
      <itunes:summary>&lt;p&gt;Thanks. As you suggest, it looks involved, but there are things in the thread and your script that I can use. I think I will abandon the general idea of putting maple in the pipeline and use hard files for data transfers to and from maple.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Mac w OS X, 10.4.6, 3.06 GHz Intel Duo with 4GB RAM, Maple14 Student&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Thanks. As you suggest, it looks involved, but there are things in the thread and your script that I can use. I think I will abandon the general idea of putting maple in the pipeline and use hard files for data transfers to and from maple.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Mac w OS X, 10.4.6, 3.06 GHz Intel Duo with 4GB RAM, Maple14 Student&lt;/p&gt;</description>
      <guid>123547</guid>
      <pubDate>Sun, 03 Jul 2011 22:42:38 Z</pubDate>
      <itunes:author>Gary Palmer</itunes:author>
      <author>Gary Palmer</author>
    </item>
    <item>
      <title>Reply to Alejandro</title>
      <link>http://www.mapleprimes.com/questions/123516-How-Read-From-Standard-Input-In-Pipe?ref=Feed:MaplePrimes:How read from standard input in pipe?:Comments#comment123542</link>
      <itunes:summary>&lt;p&gt;I followed the links. It's true that I could accomplish the reorganization by reading and writing files to disk, and I am doing some of that, both with libraries of procedures and with data from Exel files, but the question is,&lt;/p&gt;
&lt;p&gt;How does one write the input and output procedures in maple programs so they function in pipes with other scripting languages such as ruby? The sample script pipemaple.sh should read one line from the output of ls.&lt;/p&gt;
&lt;p&gt;A secondary question is, why is the syntax of my sample script, receive.mpl, breaking? if I run the "receive.mpl" script &amp;nbsp;from within BBEdit, it does not show a syntax error (but it doesn't get STDIN, either), but it breaks in the Terminal (console).&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Mac w OS X, 10.4.6, 3.06 GHz Intel Duo with 4GB RAM, Maple14 Student&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;I followed the links. It's true that I could accomplish the reorganization by reading and writing files to disk, and I am doing some of that, both with libraries of procedures and with data from Exel files, but the question is,&lt;/p&gt;
&lt;p&gt;How does one write the input and output procedures in maple programs so they function in pipes with other scripting languages such as ruby? The sample script pipemaple.sh should read one line from the output of ls.&lt;/p&gt;
&lt;p&gt;A secondary question is, why is the syntax of my sample script, receive.mpl, breaking? if I run the "receive.mpl" script &amp;nbsp;from within BBEdit, it does not show a syntax error (but it doesn't get STDIN, either), but it breaks in the Terminal (console).&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Mac w OS X, 10.4.6, 3.06 GHz Intel Duo with 4GB RAM, Maple14 Student&lt;/p&gt;</description>
      <guid>123542</guid>
      <pubDate>Sun, 03 Jul 2011 18:28:46 Z</pubDate>
      <itunes:author>Gary Palmer</itunes:author>
      <author>Gary Palmer</author>
    </item>
  </channel>
</rss>