LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-24-2004, 10:28 AM   #1
cougar694u
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Rep: Reputation: 0
Creating a printer, but sending to a script & /dev/null, how to?


I'm tring to add an interface that goes to /dev/null and uses our script to tell it how to process the file and where to send it when it's done. On a Solaris machine, it is done like this:
# lpadmin -i smartq -p hp1050sq -v /dev/null

'smartq' is the script, and hp1050sq is the new interface/device name, and it goes to /dev/null. It works fine on Solaris, and I found the same lpadmin and switches resided on RedHat 7.3, but I get an error:

# /usr/sbin/lpadmin -i smartq -p hp1050sq -v /dev/null
lpadmin: Unable to connect to server: Connection refused

Is it because of CUPS on RedHat? Do you know of another way to set it up? I already added the actual device, and it plots fine through our UI. I want to be able to lp stuff on the command line directly to our smartq script for processing and plotting.

Like I said, this works fine our Solaris & IRIX. Do you know of another way I can do it?

TIA!
 
Old 09-24-2004, 01:38 PM   #2
cougar694u
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Original Poster
Rep: Reputation: 0
This is my printcap, I figured this would work, but it doesn't:

# /etc/printcap
#
# DO NOT EDIT! MANUAL CHANGES WILL BE LOST!
# This file is autogenerated by printconf-backend during lpd init.
#
# Hand edited changes can be put in /etc/printcap.local, and will be included.

hp1050:\
:ml=0:\
:mx=0:\
:sd=/var/spool/lpd/hp1050:\
:af=/var/spool/lpd/hp1050/hp1050.acct:\
:sh:\
:lp=|/usr/share/printconf/util/jetdirectprint:

hp1050sq:\
:ml=0:\
:mx=0:\
:sd=/var/spool/lpd/hp1050sq:\
:af=/var/spool/lpd/hp1050sq/hp1050sq.acct:\
:sh:\
:lp=/usr/share/printconf/util/smartq:


thoughts?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
What would happen if I where to cat /dev/mem > /dev/null Joey.Dale Linux - General 11 07-26-2009 12:46 PM
mv c:\WINDOWS /dev/null; mount /dev/hda treehead LinuxQuestions.org Member Intro 5 10-19-2004 08:53 AM
> /dev/null 2>&1 blackzone Linux - Newbie 2 09-20-2004 04:10 AM
2>/dev/null && {...} need explanation G-Fox Linux - Networking 2 08-16-2003 12:31 PM
> /dev/null 2>&1 Sammy2ooo Linux - Software 2 07-16-2003 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:40 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
Open Source Consulting | Domain Registration