is the script executeable? try chmod 700 putsnapshot.sh