LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-03-2005, 06:15 PM   #1
slick_willie
Member
 
Registered: May 2003
Posts: 46

Rep: Reputation: 15
Help with lp syntax


I'm trying to print a specific page range in one of my scripts. I'm using the following syntax

lp -P1-4 filename

I get the following error:
lp: illegal option -- P
Xerox internal use only.

Is there a way to make this work, or another print command that will allow me to do this?
 
Old 02-03-2005, 06:20 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
lp -P 1-4 filename

Quote:
-P page-list
Specifies which pages to print in the document. The list can con-
tain a list of numbers and ranges (#-#) separated by commas (e.g.
1,3-5,16).

Last edited by jtshaw; 02-03-2005 at 06:22 PM.
 
Old 02-03-2005, 07:18 PM   #3
slick_willie
Member
 
Registered: May 2003
Posts: 46

Original Poster
Rep: Reputation: 15
Same errors
 
  


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
syntax SmithSmith123 Linux - Newbie 2 11-17-2005 04:45 PM
Help with syntax dr3vi1 Linux - Newbie 7 08-09-2005 10:20 AM
C++ syntax error before :: token HELP, i cant find the syntax error :( qwijibow Programming 2 12-14-2004 06:09 PM
syntax lynger Linux - Software 6 12-02-2003 01:03 AM
C syntax help please ... DarkDrive Programming 2 08-07-2003 04:13 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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