in reply to Running a Shell Program from CGI page

You're never using the value of $cmd.

Maye you wanted $result = `$cmd`; ?