<?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 start a script over printing via cups in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/start-a-script-over-printing-via-cups/m-p/3383963#M14183</link>
    <description>Hey professionals,&lt;BR /&gt;&lt;BR /&gt;I would like to have a printerqueue who only converts PS into PDF. I added a printer in CUPS who generates me the PS - File in /tmp/xxx. That works fine. Then I wrote a script with converts my PS into PDF - This works fine, too.&lt;BR /&gt;My Problem is: The script must be started, as soon as a User prints to the printerqueue.&lt;BR /&gt;&lt;BR /&gt;Solve this with cron occurs me badly.&lt;BR /&gt;Now my Idea: cups should invoke the script after the PS - File is generated. I tried some badly solutions like modifying the ppd - file from the queue ( insert like `touch /tmp/test`) and so on, but nothing was working.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Many thanks in advance&lt;BR /&gt;&lt;BR /&gt;Alex&lt;BR /&gt;&lt;BR /&gt;PS: using RH 9.0 on xw4100; working greatly&lt;BR /&gt;</description>
    <pubDate>Wed, 22 Sep 2004 03:53:37 GMT</pubDate>
    <dc:creator>Bauder, Alexander</dc:creator>
    <dc:date>2004-09-22T03:53:37Z</dc:date>
    <item>
      <title>start a script over printing via cups</title>
      <link>https://community.hpe.com/t5/operating-system-linux/start-a-script-over-printing-via-cups/m-p/3383963#M14183</link>
      <description>Hey professionals,&lt;BR /&gt;&lt;BR /&gt;I would like to have a printerqueue who only converts PS into PDF. I added a printer in CUPS who generates me the PS - File in /tmp/xxx. That works fine. Then I wrote a script with converts my PS into PDF - This works fine, too.&lt;BR /&gt;My Problem is: The script must be started, as soon as a User prints to the printerqueue.&lt;BR /&gt;&lt;BR /&gt;Solve this with cron occurs me badly.&lt;BR /&gt;Now my Idea: cups should invoke the script after the PS - File is generated. I tried some badly solutions like modifying the ppd - file from the queue ( insert like `touch /tmp/test`) and so on, but nothing was working.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Many thanks in advance&lt;BR /&gt;&lt;BR /&gt;Alex&lt;BR /&gt;&lt;BR /&gt;PS: using RH 9.0 on xw4100; working greatly&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Sep 2004 03:53:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/start-a-script-over-printing-via-cups/m-p/3383963#M14183</guid>
      <dc:creator>Bauder, Alexander</dc:creator>
      <dc:date>2004-09-22T03:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: start a script over printing via cups</title>
      <link>https://community.hpe.com/t5/operating-system-linux/start-a-script-over-printing-via-cups/m-p/3383964#M14184</link>
      <description>I do not know if I understant this completely?, but why not try using an alias for lp "cups"&lt;BR /&gt;like&lt;BR /&gt; my_script&lt;BR /&gt;  do this&lt;BR /&gt;  do that&lt;BR /&gt;  print using cups&lt;BR /&gt;&lt;BR /&gt;in the user profile &lt;BR /&gt;alias lp=my_script&lt;BR /&gt;&lt;BR /&gt;or am I not undrstanding your question ?&lt;BR /&gt;&lt;BR /&gt;J-P (Jean-Pierre)</description>
      <pubDate>Wed, 22 Sep 2004 07:36:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/start-a-script-over-printing-via-cups/m-p/3383964#M14184</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2004-09-22T07:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: start a script over printing via cups</title>
      <link>https://community.hpe.com/t5/operating-system-linux/start-a-script-over-printing-via-cups/m-p/3383965#M14185</link>
      <description>Hey J-P,&lt;BR /&gt;thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;This would work if I had only UNIX - Users, but I will also print from other systems - so I canÂ´t use aliases.&lt;BR /&gt;( the printerqueue didnÂ´t recognize the user )&lt;BR /&gt;I need an solution who starts my script "after" the lp - command was given and the PS - File was generated.&lt;BR /&gt;&lt;BR /&gt;I was thinking about a while ... true loop &lt;BR /&gt;( eg. analyze ll /tmp/$psfile ) - but this continuous loop is sellout...&lt;BR /&gt;&lt;BR /&gt;So I intend to do that with the spoolersystem.&lt;BR /&gt;&lt;BR /&gt;Any ideas how to implement an shellscript, eg. in the modelscript?&lt;BR /&gt;&lt;BR /&gt;Alex&lt;BR /&gt;&lt;BR /&gt;PS: I attached the ps2pdf - script, maybe someone is intereste</description>
      <pubDate>Wed, 22 Sep 2004 08:33:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/start-a-script-over-printing-via-cups/m-p/3383965#M14185</guid>
      <dc:creator>Bauder, Alexander</dc:creator>
      <dc:date>2004-09-22T08:33:08Z</dc:date>
    </item>
  </channel>
</rss>

