daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Top