LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-11-2012, 09:03 AM   #1
bajones
LQ Newbie
 
Registered: May 2008
Posts: 27

Rep: Reputation: 15
cups printing problem


I'm having a problem with a printer set up that was configured by a previous employee, can't figure out what he did. This is running on RHEL 5.3.

This is what it looks like is happening - we have a print job coming in from a mainframe that is outside our network - the print job is coming in on port 23 (telnet) rather than port 631. There is only one printer configured on the server and it is set up to print out to a file when it comes in. That is somehow sent over to a pipe, and then another application is notified by the same job that sent the print job in from the mainframe that there is a print job waiting in the pipe to be printed, the app picks up that job out of the pipe and prints it.

If I try printing from the command line or from the printer configuration GUI I can see all the files getting created - there is stuff printed in /var/log/cups/access_log and error_log. The print file goes to /var/spool/cups/c0####. It ends up in the pipe and if I cat the pipe file I can see what I tried to print (I have no idea how it is going from the spool directory to the pipe).

The print file that is coming in on port 23 doesn't show up anywhere. I would guess that there should be something that would be picking up whatever is coming in on 23 and redirecting it to CUPS, but I can't figure out what that would be.

Has anyone here ever seen a print system configured this way? I have no idea how to get this working again. I've tried rebooting to see if I could get whatever might need to be running up again, but no luck. And restarted cupsd a bunch of times. This has certainly worked in the past, but I don't know how.

thanks for any suggestions!
 
Old 01-11-2012, 07:20 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,376

Rep: Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756
This can be done using a script involving 'inotifywait' that watches for the creation of the incoming file, then performs some action. For an example of using inotifywait look at this post. http://www.linuxquestions.org/questi...8/#post4235413
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cups Printing Problem mickeyboa Fedora 1 10-07-2009 08:44 AM
Printing problem with CUPS rangalo Slackware 2 12-14-2005 09:27 AM
Printing Problem (cups / cups-lpd) daleman Linux - Software 3 04-08-2005 08:01 AM
CUPS printing problem r3dhatter Linux - General 8 05-16-2004 11:14 AM
CUPS printing problem EnigmaX Linux - Newbie 1 05-13-2004 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:35 PM.

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
Open Source Consulting | Domain Registration