Featured Post

My favorite links (ranked)

#1  Linux laptop powertuning painlessly (almost) #2 hard-drive-recovery #3 Chromebook Specifications #4 Internet BMW riders   #5 Findagra...

Sunday, April 5, 2020

Handy command line usage info for automated print jobs via cron for example...


The "l" option to the lpoption command is your friend for getting color saturation or duplexing to suit your needs correctly....

$ lpoptions -d AutoPrintViaCron -l

MediaType/Media Type: PLAIN_HIGH PLAIN_NORMAL *PLAIN_DRAFT PLAIN_SUPERDRAFT LETTERHEAD_HIGH LETTERHEAD_NORMAL LETTERHEAD_DRAFT LETTERHEAD_SUPERDRAFT RECYCLED_HIGH RECYCLED_NORMAL RECYCLED_DRAFT COLORPAPER_HIGH COLORPAPER_NORMAL COLORPAPER_DRAFT PREPRINTED_HIGH PREPRINTED_NORMAL PREPRINTED_DRAFT PREPRINTED_SUPERDRAFT PMMATT_HIGH PMMATT_NORMAL PLATINA_HIGH PLATINA_NORMAL PMPHOTO_HIGH PMPHOTO_NORMAL PSGLOS_HIGH PSGLOS_NORMAL ENV_HIGH ENV_NORMAL THICK_HIGH THICK_NORMAL
Ink/Grayscale: *COLOR MONO
Duplex/Duplex Tumble: *None DuplexNoTumble DuplexTumble
PageSize/Media Size: A4 TA4 4X6FULL T4X6FULL 2L T2L A6 A5 B5 L TL INDEX5 8x10 T8x10 4X7 T4X7 ENV10 ENVC6 *Letter TLetter Legal
InputSlot/Paper Source: *Auto Cassette1 Cassette2 Rear

Here is an example cron command line I wrote to keep my ink jet system clog free without having to remember to print to it twice a week:

#
# Print InkJetPM sheet twice a week to stop getting ink clogs
# 0=Sunday @ 5PM and 4=Thursday @ 5AM
#
0 17 * * 0 /usr/bin/lp -d AutoPrintViaCron -o MediaType=PLAIN_HIGH /home/tim/Documents/InkJetPM.pdf
0 5 * * 4 /usr/bin/lp -d AutoPrintViaCron -o MediaType=PLAIN_HIGH /home/tim/Documents/InkJetPM.pdf
#

Had to add the -o MediaType=PLAIN_HIGH to get full color saturation output of the following
pdf content....

This ensures that all four color nozzle sets get flushed twice a week as recommended by inkjet printing experts.



No comments:

Post a Comment

Comments welcome!