Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
function run_ftp
{
#do your ftp stuff here
#end with this in your function
#you dont want to generate a bad return
#if this succeeds
exit 0
}
##MAIN
#run it in the background while the script continues.
run_ftp &
#grab the PID
FTPPID=$!
#set the timer to whatever you want to error on
sleep 300
#kill the ftp process.
kill $FTPPID
#exit on error after timer expires
exit 1