<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Mailing sys$input as file in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/mailing-sys-input-as-file/m-p/3425559#M31584</link>
    <description>Maybe one of you gurus can help.  I have VMS 7.3-2 system.  I am trying to perform a pipe of the output from dir/sin=date/sec to a mail command.  &lt;BR /&gt;&lt;BR /&gt;I tried along the lines of &lt;BR /&gt;&lt;BR /&gt;$ pipe dire/sinc=date/sec || mail sys$input "user@email.com"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I would appreciate any advice, pipe always give me problems.</description>
    <pubDate>Thu, 18 Nov 2004 15:14:33 GMT</pubDate>
    <dc:creator>Mike Smith_33</dc:creator>
    <dc:date>2004-11-18T15:14:33Z</dc:date>
    <item>
      <title>Mailing sys$input as file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mailing-sys-input-as-file/m-p/3425559#M31584</link>
      <description>Maybe one of you gurus can help.  I have VMS 7.3-2 system.  I am trying to perform a pipe of the output from dir/sin=date/sec to a mail command.  &lt;BR /&gt;&lt;BR /&gt;I tried along the lines of &lt;BR /&gt;&lt;BR /&gt;$ pipe dire/sinc=date/sec || mail sys$input "user@email.com"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I would appreciate any advice, pipe always give me problems.</description>
      <pubDate>Thu, 18 Nov 2004 15:14:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mailing-sys-input-as-file/m-p/3425559#M31584</guid>
      <dc:creator>Mike Smith_33</dc:creator>
      <dc:date>2004-11-18T15:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mailing sys$input as file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mailing-sys-input-as-file/m-p/3425560#M31585</link>
      <description>Hmmm,&lt;BR /&gt;&lt;BR /&gt;This works for me:&lt;BR /&gt;&lt;BR /&gt;$ pipe dir *.exe | mail sys$pipe hein&lt;BR /&gt;Enter your message below. Press CTRL/Z when complete, or CTRL/C to quit:&lt;BR /&gt;New mail on node XXXX from XXXX::HEIN&lt;BR /&gt;&lt;BR /&gt;Not sure how to supress that 'enter message line'&lt;BR /&gt;I think you would need to go into an intermediate temp file (hint: f$unique) for that.&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Nov 2004 15:36:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mailing-sys-input-as-file/m-p/3425560#M31585</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-11-18T15:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Mailing sys$input as file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mailing-sys-input-as-file/m-p/3425561#M31586</link>
      <description>Mike,&lt;BR /&gt;&lt;BR /&gt;  You haven't said what does or doesn't happen with your attempted command? It might be the difference between "SYS$INPUT" and "SYS$PIPE". In some cases they're interchangeable, in others they're not. I recommend always using SYS$PIPE to refer to pipelined I/O. &lt;BR /&gt;&lt;BR /&gt;  (However in my tests, both SYS$PIPE and SYS$INPUT work in this instance)&lt;BR /&gt;&lt;BR /&gt;  To supress the "Enter your message" line, use I/O redirection:&lt;BR /&gt;&lt;BR /&gt;$ PIPE DIRECTORY | MAIL SYS$PIPE user &amp;gt; NL:&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Nov 2004 16:25:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mailing-sys-input-as-file/m-p/3425561#M31586</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2004-11-18T16:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Mailing sys$input as file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mailing-sys-input-as-file/m-p/3425562#M31587</link>
      <description>Mike,&lt;BR /&gt;&lt;BR /&gt;  Doh! Just noticed you have TWO pipe characters between your directory command and MAIL. So, you're piping the output of DIRECTORY into a process with no command, and you're sending an EOF (ie: no data) into MAIL. So the output ends up on the terminal and MAIL doesn't do anything.&lt;BR /&gt;&lt;BR /&gt;  Drop back to ONE "|" character and it should work. (I still recommend replacing SYS$INPUT with SYS$PIPE for clarity).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Nov 2004 16:29:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mailing-sys-input-as-file/m-p/3425562#M31587</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2004-11-18T16:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Mailing sys$input as file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mailing-sys-input-as-file/m-p/3425563#M31588</link>
      <description>Thanks for all the replies, I was getting the inital mail message at first.  Upon trying to troubleshoot that problem I began typing in || instead of |.  This caused the directory to display to my screen and not to mail me anything.  Thanks for all the help.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Nov 2004 16:35:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mailing-sys-input-as-file/m-p/3425563#M31588</guid>
      <dc:creator>Mike Smith_33</dc:creator>
      <dc:date>2004-11-18T16:35:51Z</dc:date>
    </item>
  </channel>
</rss>

