There is an incompatibility between the packages enscript-1.6.1-9 and lpr-0.50-4 that ship with RedHat 6.2 regarding enscript's "-m" (send status by mail) option. This version of lpr expects its "-m" option to take an argument (the address to mail the status report to). It does not work with an argument-less "-m", unlike other lpr's (e.g. the Solaris lpr), that assume mail should be sent to the user submitting the job. Enscript expects lpr to accept an argument-less "-m", so if the enscript user specifies that option, enscript just appends "-m" to the print spooler's options. This causes lpr to return an error: "lpr: missing argument for 'm'". I am not certain what the proper fix should be: should the enscript interface be kept the same, allowing only the argument-less version (and sending lpr the username of the person running the program); should enscript users be forced to specify the recipient, keeping the interface consistent with lpr; or should the argument be optional, sending to the person specified or the username if the argument was left blank. In any case, it is a very easy fix involving only 5 lines of code. (I will send you my version, if you are interested. It uses an optional argument.) Hope this was descriptive enough. Dan
Created attachment 3480 [details] This is the modified version of enscript's main.c using the optional -m argument
ok