benjovanic
benjovanic

Reputation: 537

lpr: Error - unknown option "V"

I am getting this error when trying to run the lpr command:

lpr: Error - unknown option "V".

My full command I am running is

lpr -V -P printer-1 file.txt

According to the documentation here http://manpages.ubuntu.com/manpages/saucy/en/man1/lpr.1.html there is a -V flag.

If I run the command without the -V flag it prints fine, however I need output so the application I am building knows if the print was successful or not.

Running on Ubuntu 12.04 LTS.

UPDATE #1

I tried this again on Ubuntu 14.04 and it still does not recognise the -V flag. As @smagnan pointed out, CUPS does not support the -V flag.

So, is there a Linux distribution that does not use CUPS and uses another printing system which does have a verbose flag? A success or fail output is imperative for the application.

Upvotes: 2

Views: 976

Answers (1)

smagnan
smagnan

Reputation: 1267

Sadly it seems that:

The "c", "d", "f", "g", "i", "m", "n", "t", "v", and "w" options are not supported by CUPS and will produce a warning message if used.

Source: linux man page for lpr

Note: CUPS means Common Unix Printing System which is used in ubuntu it seems: http://doc.ubuntu-fr.org/impression_sous_ubuntu

Upvotes: 1

Related Questions