Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. #!/bin/sh
  2. #
  3. # Create a dedicated folder for printing in your Dropbox
  4. # e.g. ~/Dropbox/PrintQueue
  5. #
  6. # Point dboxprint.sh to this folder by setting dir
  7. # Then make dboxprint.sh executable
  8. # Add the script to crontab and forget it
  9. #
  10. ###
  11.  
  12. dir=/full/path/to/Dropbox/PrintQueue
  13.  
  14. for file in `ls $dir`
  15. do
  16.   lpr $file
  17.   rm $file
  18. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement