I am writing a ruby script that prints by calling:
`/usr/bin/lp -d PrinterQueue -U #{user} #{fileToBePrinted}`
I would like to handle printing errors gracefully, but can't determine what lp
returns when I execute it. Usually it is a string like this:
request id is PrinterQueue-68 (1 file(s))
Is there anywhere that describes what lp
should return in strange cases?
Thanks!