From: Courchesne, A. <And...@ca...> - 2005-02-10 16:43:13
|
Hi, First I know this is a no-no in the documentation and I can understand why. However for a custom module in a controlled environment, I need to call an external an external application, grab the output in an array and crunch the data to then display it. I tried the following: @raw_data=`./usr/local/bin/ipmitool sel list`; But I get the following error: Error - Missing Content-Type Header /usr/local/webmin/sel/index.cgi: line 1: ./usr/local/bin/ipmitool: No such file or directory /usr/local/webmin/sel/index.cgi: line 4: @raw_data=: command not found However if I run the same index.cgi from the command like (perl index.cgi) the external application is executed, output is in the array and I can crunch it. Any pointers for me? ---- Andre Courchesne Software designer Kontron Canada Inc. <mailto:and...@ca...> <http://www.kontron.com/> Corp. Tel.: (450) 430-5400 Direct Tel.: (450) 437-4661 x2250 |