The following shell script is working fine if executed in linux console, but not with the exec() command of php. I got the return value 1 (that means a error has occured), although in php.ini the safe_mode_exec_dir is set right and the shell script is owned by the correct user / group.
[FONT=courier new]
#!/bin/sh
set -x
rsync -ze 'ssh -i /etc/httpd/identity/identity' --delete \
/home/webs/pics/* \
user@xx.xx.xx.xx:/www/pics/ || exit 1
exit 0
[/FONT]
had somebody related problems or any suggestions?