From: Larry G. <List@ISComp.com> - 2002-08-25 01:35:45
|
Jamie, Thank you . . . you are awesome! I don't know that I would have figured that one out. Makes perfect sense now that I see it. Thanks for Webmin and thanks for all your efforts in support! --Larry Gilson -----Original Message----- From: Jamie Cameron [mailto:jca...@we...] Sent: Saturday, August 24, 2002 8:34 PM To: web...@li... Subject: Re: cgi help Larry Gilson wrote: > Hi All, > > I am creating some cgi scripts for my webmin module. These scripts will > provide different views of Postfix maillog. For example, one will be > today's maillog, one will be today's rejects, one will be week-to-date > maillog, one will be week-to-date rejects, etc. I have created shell > scripts which my cgi will run and output. > > Here is my problem. I can run the custom scripts through Custom Commands > and the output is perfect. However, when I run them from my cgi script, > some information is lost. Spcefically, I can see output from Custom > Commands like: > from=<jo...@sc...> > to=<be...@cr...> > However, when I run it through my script I get the following: > from= > to= > > I would be most appreciative if anyone could take a peek and provide any > feedback. I have a copy of the shell script and cgi located here: > http://www.iscomp.com/files/. In viewing the cgi script, the scalar $script > contains the full path and filename of the script. > > Thanks in advance for anyone willing to take the time! I don't think the output is going missing .. what is really happening is that your browser is interpreting the <emailaddress> text as an HTML tag that it doesn't know how to display, and thus displaying nothing. To solve this, use webmin's &html_escape function on your output before printing it. So instead of doing print $output,"\n"; do print &html_escape($output),"\n"; instead. The custom commands module does this to all the output from your command automatically, which is why you didn't see the problem there. - Jamie ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 - Forwarded by the Webmin mailing list at web...@li... To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list |