in reply to Calling system function in cgi
you can try using backtics:system("test.exe");
The screen output of running test.exe will be captured in $results.my $results = `test.exe`;
Although you're not doing it in your example, but if you pass any input from your CGI to the command line, make sure you untaint it first.
Cheers,
Brent
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Calling system function in cgi
by esskar (Deacon) on Dec 28, 2005 at 14:22 UTC | |
by vek (Prior) on Dec 28, 2005 at 16:53 UTC |