Advertisement
Guest User

start gscan2pdf script

a guest
Apr 3rd, 2013
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #!/bin/bash
  2. # Purpose: start gscan2pdf with scansnap
  3. # Author: Rick Evans
  4. # Date created: 04/02/13
  5. # Date last modified: 04/02/13
  6. #
  7. #Brief description of the script:
  8. #only start the application is it is not already started
  9. #
  10.  
  11. #testing for the word fujitsu because we are only concerned if the scansnap scanner profile is active
  12.  
  13. TEST=`pgrep -f fujitsu`
  14.  
  15. if [ "${TEST:-null}" = null ]; then
  16. `gscan2pdf --device='fujitsu:ScanSnap S1500:373683'` &
  17. else
  18. echo "running, nothing to do"
  19. exit 0
  20. fi
  21. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement