I have a script that uses expect to upload CDR backup files to a SFTP server. I can use the script from the command line but I get :Executing Post Backup Hook: CDRupload.sh
sh: CDRupload.sh: command not found When it is run as a post script. I have the permissions and the owner set to 777 and asterisk. Here is the script:
spawn sftp [email protected]
#send “cd logdirectory\n”
send “put /var/spool/asterisk/backup/*.gz\n”
any ideas as to why this isn’t working?