could not get cgi script info onto webpage
Please tell me what iam doing wrong. I am trying to write a cgi script to get disc info of remote server onto webpage. IT runs fine on linux server ie it gets disc info from remote server but on webpage nothing gets displayed except header.
echo "Content-type: text/html"
echo "<html><head><title>Bash as CGI"
echo "<h1>Memory Info</h1>"
echo "<pre> $(ssh -n -q uname@remoteIP df -k) </pre>"