From: <ra...@si...> - 2005-02-10 18:10:47
|
On Thu, 10 Feb 2005, Courchesne, Andre wrote: > 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`; ^ Just a quick observation, but is the leading dot supposed to be there? > > 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 > > > > > ------------------------------------------------------- > 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 web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > |