====== Get the amount of remaining ink of your Epson printer ====== This is how to get the amount of remaining ink as reported by your Epson printer. For KDE: <code sh> #! /bin/sh # LANG=C is to be sure that it works on all locales kdialog --title "Ink levels" --msgbox "$(LANG=C escputil -qir /dev/usb/lp0 2>&1 | \ sed -re 's/.*remaining.*/Percent of ink remaining/;s/([0-9]+)$/\1%/')" </code> For Gnome: <code sh> #! /bin/sh # LANG=C is to be sure it works on all locales zenity --info --title "Ink Levels" --text "$(LANG=C escputil -qir /dev/usb/lp0 2>&1 | \ sed -re 's/.*remaining.*/Percent of ink remaining/;s/([0-9]+)$/\1%/')" </code> It may differ a bit if you're using a newer/older Epson Printer. The above has been tested on an Epson Stylus C84 connected via USB. ~~META:date created = 2006-11-03 15:58:00~~

 
blog/get_the_amount_of_remaining_ink_of_your_epson_printer.txt · Last modified: 08/03/2010 13:25 (external edit) · []
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki