Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- for file in /download/*
- do
- if [ ! -f "${file% temp.mp4} temp.mp4" ]; then
- echo "--temp.mp4 detected "
- #Call the uploading API and store the return code
- res=upload.sh
- if [ $res -e 0 ];then
- echo "--Uploading successful"
- else
- echo "--Uploading failed"
- fi
- done
- */5 * * * * /usr/local/fileMonitoring.sh (for example)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement