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.
if echo "ls filename" | sftp hostname 2>&1 | grep "No such file"
then
echo "filename does not exist on hostname"
exit 1
else
echo "filename does exist on hostname"
fi
if [[ "YES" == $(ssh user@hostname "[[ -f filename ]] && print YES") ]]
then
print "filename exists on hostname"
else
print "filename DOES NOT exist on hostname"
exit 1
fi