User Tools

Site Tools


blog:print_files_from_any_device_using_dropbox

This is an old revision of the document!


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
export PrintQueue="/root/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/

~~LINKBACK~~

Discussion

Enter your comment. Wiki syntax is allowed:
   __  ___   __ __   ____   _  __   ___ 
  /  |/  /  / // /  /  _/  / |/ /  / _ \
 / /|_/ /  / _  /  _/ /   /    /  / , _/
/_/  /_/  /_//_/  /___/  /_/|_/  /_/|_|
 
blog/print_files_from_any_device_using_dropbox.1303051338.txt.gz · Last modified: 2011-04-17 16:42 by brb