[webmin-devel] Use of external binary from module

"Courchesne, Andre" <[email protected]>
Newsgroups gmane.comp.web.webmin.devel
Message-ID <[email protected]>
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:[email protected]> 
<http://www.kontron.com/> 
Corp. Tel.: (450) 430-5400 
Direct Tel.: (450) 437-4661 x2250 
 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.