View Single Post

  #2 (permalink)  
Old 10-23-2007, 10:33 PM
vivekv vivekv is offline
Junior Member
User
 
Join Date: Sep 2007
My distro: CentOS
Posts: 16
Rep Power: 0
vivekv is on a distinguished road
Default

ok,almost all problems are solved now with the help of
nixCraft - Linux sys admin blog by Vivek
But I need 1 and only last help

I need to execute this command using PHP FILE


Code:
rsync -v -e ssh user@remoteserver.com:~/back/file.tar.gz /home/user/www/1
What this code will do is :

This will download a file called file.tar.gz from a remote server,remoteserver.com and will save it into /home/user/www/1


I checked this command via putty and is working.

But I need to add this command to a php file so that when a php file called download.php will execute, then this code must be executed.

How to do that ?

Any idea ?

Thanks
Reply With Quote