Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Author: Hugo Alvarado
- # Date: March 8, 2015
- #This parameter is the full path to the movie created by Motion.
- MOVIE=$1
- echo "Uploading Movie: $MOVIE" >> /path/to/your/movie.log
- /usr/bin/wput -B ftp://username:password@ftp.yourdomain $MOVIE 2> /path/to/your/error.log
- if [ "$?" = "0" ]; then
- echo "Movie Uploaded Successfully." >> /path/to/your/movie.log
- else
- echo "Couldnt Upload Movie." >> /path/to/your/movie.log
- exit 1
- fi
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement