Hi, I am trying to execute system commands from CGI but it doesnt work.If I execute the same code from command line, the code works fine.
#!/usr/bin/perl print "content-type: text/html \n\n"; # SET UP THE TABLE print "<table border='1'>"; print "<th>Test</th><th>Value</th><th>Expected Value</th><th>Result</t +h>"; $x=system("who",">>/var/www/cgi-bin/new.txt");
Any help will be greatly apreciated
In reply to System commands using CGI by nikhilB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |