LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-15-2017, 08:58 AM   #1
jerry.tilsley
LQ Newbie
 
Registered: Feb 2017
Posts: 3

Rep: Reputation: Disabled
CUPS -> Print to file issue


All,

I am working on a project on a RHEL 7x Server that will have me creating different print spools. The desired effect is to have a printer that prints to a specific file path. I have enabled the FileDevice directive in the cups-files.conf. I have everything working expect the files fall under the path of /tmp/systemd-private-xxxx-cups.service-xxxx then the path I specified. Is there a way that when I specify the device-uri like /spools/printers, the files will be created there instead of under the systemd path?

Thanks,

Jerry
 
Old 02-15-2017, 04:31 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,832

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
Here is the reason why /tmp/systemd-private... directory is being created. What is exact path are you using for the file?

https://access.redhat.com/blogs/766093/posts/1976243
 
Old 02-16-2017, 08:30 AM   #3
jerry.tilsley
LQ Newbie
 
Registered: Feb 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
I was able to disable the PrivateTmp and get the printers to drop to just /tmp using file://tmp/<filename>. But, trying to use file:///integration/spools/printers/<filename> does not work. I get an error that the scheduler could not open the output file. Obviously a permissions issue which I haven't been able to figure out just yet, i'll update when I know more.

Thanks,

Jerry
 
Old 02-20-2017, 09:07 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3+18.3
Posts: 4,126

Rep: Reputation: Disabled
Quote:
Originally Posted by jerry.tilsley View Post
file:///integration/spools/printers/<filename>
Jerry
Is this a typo or the cause of the error?
 
Old 02-20-2017, 09:59 AM   #5
jerry.tilsley
LQ Newbie
 
Registered: Feb 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
That was not a typo, and does not cause error. Actually if I use file://dir/file then t complains.

Thanks,

Jerry
 
Old 02-20-2017, 10:04 AM   #6
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3+18.3
Posts: 4,126

Rep: Reputation: Disabled
Quote:
Originally Posted by jerry.tilsley View Post
That was not a typo, and does not cause error. Actually if I use file://dir/file then t complains.


versus your previous post

Quote:
Originally Posted by jerry.tilsley View Post
... just /tmp using file://tmp/<filename>. But, trying to use file:///integration/spools/printers/<filename> does not work.

is hard to follow. Why would it work in the "green" version then?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] slackware 14.2 cups clinet cannot reotely print on 14.1 cups print server louigi600 Slackware 27 09-22-2016 05:25 PM
Using CUPS 1.3.7 on RHEL 5 - wrapping issue on print jobs shannonadams68 Red Hat 1 02-13-2010 07:17 AM
Configure CUPS to print to file? astrogeek Slackware 3 01-10-2009 07:03 PM
cups print to file on command line kairen Slackware 2 01-30-2008 02:05 AM
How to print an entire .chm file with CUPS? JockVSJock Slackware 4 08-29-2006 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration