File : .cgi-bin/file.cgi
Code:
#!/bin/sh
echo Content-type: text/html
echo
echo
echo "<HTML>"
echo "<HEAD>"
echo "</HEAD>"
echo "<BODY>"
echo "<H2>Hard disk info:</H2>"
echo "<PRE>"
df-h
echo "</PRE>"
echo "</BODY>"
echo "</HTML>"
I want to replace "df -h" with this command
Code:
rsync -v -e ssh user@remoteserver.com:~/back/file.tar.gz /home/user/www/1
I changed , but its not working.
