Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am trying to setup a dot matrix printer for the first time directly to a machine running Fedora Core 2. After setting it up with the GUI for CUPS I am able to run "lpr file" and it prints, however it feeds the whole page through.
My application requires me to use a script to send output one line at a time. How can I make the lpr command just print the file and then go to the next line (advance page one increment) to wait for the next time the script runs?
In the options I've tried checking and unchecking both the Send Form-Feed (FF) option and thed Send End-of_transmission (EOT) option without luck.
I am using a 9pin impact printer, Panasonic KX-P1150.
I've never tried to do such a thing with Cups. You can do it with the print utility enscript, which allows you to specify how many line per page, among other things. Check out man enscript for more info.
Enscript looks like it has promise, I will try working with the various switches.
As for the script, I have a PHP script that each time it is ran needs to print one line. Like a logger that logs to a printer instead of a file. I am looking for a command I can run that will let me print some output on a line. Then the next time the script calls the command it will print the next line, without advancing to the next page.
I believe I have gone through all of enscript's command line switches without luck.
After doing a couple more hours of reading I believe that the system is sending the printer a command to do a form feed, which I want to stop. In the CUPS GUI there is an option to send a form feed command or not and I made sure that was unchecked along with end of transmission. That did not work. I tried it again with sending an end of transmission and it still didn't work.
I am at a loss here. I have tried printing now using the commands; lp, lpr, and enscript all without luck.
I have also read the printer manaul a dozen times and can't figure anything new out, except that it can emulate an Epson printer, the Epson FX-850, however changing to this one did not help either.
I looked through the /etc/cups/ files and the /etc/printcap file and didn't see anything that lit a light bulb.