Thanks for the suggestion. It is true that the XML tags and data within them is present if i check "view source" in my browser. I finally got that working by replace "<" by "<"before displaying it in browser.
But that is not the only problem. Other than the XML part, there is a large amount of data missing from the output which I normally get if i log onto my web server and run the same command on the command line, i.e, a large part of the output seems to be truncated when I run the command through the web page. What should I do to capture all the output into the perl variable?
| [reply] [d/l] |
I'm still not convinced that the variable isn't capturing all of the output. Perhaps the output is different for different users and the CGI user's output is only a subset of what you get as yourself. It's also possible that the browser times out in downloading a large amount of data though I kind of doubt that. Change your CGI to print the output directly to a file on the server and examine that file to see what the variable is actually capturing.
| [reply] |