Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #!/bin/bash
  2. # Author: Hugo Alvarado
  3. # Date: March 8, 2015
  4.  
  5. #This parameter is the full path to the movie created by Motion.
  6. MOVIE=$1
  7.  
  8. echo "Uploading Movie: $MOVIE" >> /path/to/your/movie.log
  9. /usr/bin/wput -B ftp://username:password@ftp.yourdomain $MOVIE 2> /path/to/your/error.log
  10. if [ "$?" = "0" ]; then
  11. echo "Movie Uploaded Successfully." >> /path/to/your/movie.log
  12. else
  13. echo "Couldnt Upload Movie." >> /path/to/your/movie.log
  14. exit 1
  15. fi
  16. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement