New answers tagged printing
1
If your printer was setup with lpadmin, you should be able to get and set its options with lpoptions. There is a file called ~/.cups/lpoptions for each user (you can create it if it doesn't exist), and another called /etc/cups/lpoptions for system-wide settings. If you're able to change your settings with the lpoptions command, then you can make the settings ...
0
I believe the equivalent in pycups is the IPPError class (note the try / except example code), since the cupsLastError* functions in cups returns the IPP error codes.
Checking the status code of a subprocess should also work, but seems like unnecessary overhead if pycups will give you the code directly.
1
That error means that python isn't installed. Given you're a novice I'd be inclined to steer you towards either Ubuntu or Linux Mint.
5
The message (in English "egrep: Invalid range end") comes from a bug in a2ps.
Its /usr/bin/texi2dvi4a2ps shell script calls egrep wrongly:
Instead of
echo "$command_line_filename" | egrep '^(/|[A-z]:/)' >/dev/null \
|| command_line_filename="./$command_line_filename"
it should be
echo "$command_line_filename" | egrep '^(/|[A-Za-z]:/)' >/dev/null ...
Top 50 recent answers are included