You should probably also insert the full pathname of any external commands to be executed from the shell script, such as the full path of "rsync" (eg. "/rsync") rather than merely "rsync".