Hello,

I have a bash script update.sh that contains:
rsync -- delete -avz -e ssh ${files} [EMAIL PROTECTED]:/red
when I use that script ./update.sh as root, it works like a charm as I set up 
the private/public key properly.
When run from a php script through the apache webserver
<?php
exec("update.sh");
?>
The rsync line is ignored. 
I
understand that the php script is called under the apache user, when
the private/public key is for my root user. How can I set the the keys
so that the apache user can run fully the php script?

Thank you.


      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Reply via email to