<?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 Re: line printer to email in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/line-printer-to-email/m-p/2681432#M908588</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;This is really quite easy, I just tested&lt;BR /&gt;this  solution  and it works&lt;BR /&gt;Use  lpadmin  to define a printer to print&lt;BR /&gt;to /dev/null  like this:&lt;BR /&gt;lpadmin -pprintername -v /dev/null -mdumb&lt;BR /&gt;&lt;BR /&gt;Then edit the model-script in /etc/lp/interface&lt;BR /&gt;directory.  Modify it so that you  embrace&lt;BR /&gt;all  the statements that give output to&lt;BR /&gt;the printer in a  pair  of  (  )&lt;BR /&gt;After the )  you  redirect the output to a file&lt;BR /&gt;like this  ) &amp;gt; /tmp/$$MAIL.tmp&lt;BR /&gt;Then add  these lines&lt;BR /&gt;mail olav@hp.com &amp;lt; /tmp/$$MAIL.tmp 2&amp;gt; /dev/null &lt;BR /&gt;rm /tmp/$$MAIL.tmp&lt;BR /&gt;The statements that give output to the printer&lt;BR /&gt;are  echo, and cat.&lt;BR /&gt;&lt;BR /&gt;You should also comment out any stty commands&lt;BR /&gt;in the script. &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 12 Mar 2002 19:36:57 GMT</pubDate>
    <dc:creator>Olav Baadsvik</dc:creator>
    <dc:date>2002-03-12T19:36:57Z</dc:date>
    <item>
      <title>line printer to email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/line-printer-to-email/m-p/2681430#M908586</link>
      <description>can someone help me on setting up a printer destination on my unix 10.2 server to forward the file received to an email address ?&lt;BR /&gt;&lt;BR /&gt;thanks !</description>
      <pubDate>Tue, 12 Mar 2002 18:02:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/line-printer-to-email/m-p/2681430#M908586</guid>
      <dc:creator>shera canty</dc:creator>
      <dc:date>2002-03-12T18:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: line printer to email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/line-printer-to-email/m-p/2681431#M908587</link>
      <description>I want to make sure I understand your question....are you asking to change the interface scripts on a printer to send the output to an email?&lt;BR /&gt;&lt;BR /&gt;Why not just email the file instead of sending it to a printer?&lt;BR /&gt;&lt;BR /&gt;Rita</description>
      <pubDate>Tue, 12 Mar 2002 18:13:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/line-printer-to-email/m-p/2681431#M908587</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2002-03-12T18:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: line printer to email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/line-printer-to-email/m-p/2681432#M908588</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;This is really quite easy, I just tested&lt;BR /&gt;this  solution  and it works&lt;BR /&gt;Use  lpadmin  to define a printer to print&lt;BR /&gt;to /dev/null  like this:&lt;BR /&gt;lpadmin -pprintername -v /dev/null -mdumb&lt;BR /&gt;&lt;BR /&gt;Then edit the model-script in /etc/lp/interface&lt;BR /&gt;directory.  Modify it so that you  embrace&lt;BR /&gt;all  the statements that give output to&lt;BR /&gt;the printer in a  pair  of  (  )&lt;BR /&gt;After the )  you  redirect the output to a file&lt;BR /&gt;like this  ) &amp;gt; /tmp/$$MAIL.tmp&lt;BR /&gt;Then add  these lines&lt;BR /&gt;mail olav@hp.com &amp;lt; /tmp/$$MAIL.tmp 2&amp;gt; /dev/null &lt;BR /&gt;rm /tmp/$$MAIL.tmp&lt;BR /&gt;The statements that give output to the printer&lt;BR /&gt;are  echo, and cat.&lt;BR /&gt;&lt;BR /&gt;You should also comment out any stty commands&lt;BR /&gt;in the script. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Mar 2002 19:36:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/line-printer-to-email/m-p/2681432#M908588</guid>
      <dc:creator>Olav Baadsvik</dc:creator>
      <dc:date>2002-03-12T19:36:57Z</dc:date>
    </item>
  </channel>
</rss>

