Consider the following two shell commands:
ls -ls /tmp > /tmp/lperr echo 'test er2' > /home/joe/lperr2
both work in a simple two-line shell script. The first creates a file in
/tmpand the second creates one in
/home/joe. However, if I put the same two lines into a printer interface script, the line first creates a file in
/tmp/system-private-ca1f.......-cups.service-9Uh8JK/tmpand the second one is created in
/home/joeas expected. If I just execute the interface script from a command line they both work as expected. But if executed via an
lpcommand the first one does its strange behavior.
If I configure a print queue with a DeviceURI like
file:///tmp/output.txt, the file isn't saved in the
- Our print programs are not able to write out to
/tmp. We upgraded the system from RHEL 5 to RHEL 7. The same commands that work on RHEL 5 to generate output in
/tmpno longer work in RHEL 7.
- Red Hat Enterprise Linux (RHEL) 7
- Common Unix Printing System (CUPS) 1.6.3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.