Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. for file in /download/*
  4. do
  5. if [ ! -f "${file% temp.mp4} temp.mp4" ]; then
  6. echo "--temp.mp4 detected "
  7.  
  8. #Call the uploading API and store the return code
  9. res=upload.sh
  10.  
  11. if [ $res -e 0 ];then
  12. echo "--Uploading successful"
  13. else
  14. echo "--Uploading failed"
  15. fi
  16.  
  17. done
  18.  
  19. */5 * * * * /usr/local/fileMonitoring.sh (for example)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement