LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-07-2005, 05:44 PM   #1
fellz
LQ Newbie
 
Registered: Feb 2004
Location: Austria
Distribution: Ubuntu, RedHat 8.0
Posts: 15

Rep: Reputation: 0
how to substitute lpr / lp? spooling app doesn't like any other commands


hello!

that's the background for my question:
i need to convert a PCL print file (that comes from a cobol application) to a PDF. this can be done using GhostPCL.

so i tried changing the app's spooler command from
">lp -s -dprinter1"
to
">pcl6 [and some parameters here]"
but when trying to print the application says "printer not ready" (does lp return anything the app is waiting for?)

any clues are appreciated :-)

thanks!
 
Old 12-07-2005, 05:52 PM   #2
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
I may be oversimplifying the issue, but what if you made a shell script...
Code:
#!/bin/bash
## place the command you want run here
/path_to/pcl6
exit 1
and save that as lp or lpr?
 
Old 12-07-2005, 05:58 PM   #3
fellz
LQ Newbie
 
Registered: Feb 2004
Location: Austria
Distribution: Ubuntu, RedHat 8.0
Posts: 15

Original Poster
Rep: Reputation: 0
thanks for your reply!

Quote:
Originally Posted by Darin
I may be oversimplifying the issue, but what if you made a shell script...
Code:
#!/bin/bash
/path_to/pcl6
exit 1
and save that as lp or lpr?
the name of the script seems not to be of importance. but you might have given me the answer already: the line "exit 1" could make the app think that the printer IS ready... i'm gonna try that tomorrow!

thanks!
 
  


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
Printer spooling locks up felixaux111 Linux - Networking 0 02-23-2005 06:05 PM
Spooling Mail Server mthaddon Linux - Software 1 10-08-2004 11:13 AM
CUPS... almost there.. help spooling please. fastly Linux - General 7 06-01-2004 02:30 AM
confused... lpr/ lpr-cups shadow.blue Linux - Software 1 04-06-2004 05:15 PM
lpr & lpr-cups commands not working with CUPS trinbellwoods Debian 2 01-08-2004 08:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:59 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