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:
OK so the script is not running from the backup module. What owner and permissions are needed? Just guessing that this is the issue. I set it to 777/asterisk.asterisk Still won’t run from the backup module. The module says that it finished without errors, but that is a lie.