Print files from any device using Dropbox

If you have a printer attached to a Linux machine, you can easily send print jobs to that printer from another remote computer using Dropbox (see similar solutions for Windows and Mac).

#!/bin/bash
user=brb
PrintQueue="/home/$user/Dropbox/PrintQueue";
IFS=$'\n'
for PrintFile in $(/bin/ls -1 ${PrintQueue}) do
  lpr -r ${PrintQueue}/${PrintFile};
done
-- dropprint.sh ---

Ref: http://www.labnol.org/software/print-files-on-linux/17841/

Discussion

Enter your comment
If you can't read the letters on the image, download this .wav file to get them read to you.
 
blog/print_files_from_any_device_using_dropbox.txt · Last modified: 2011/04/17 16:46 by brb
Back to top
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0