-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Tim,
On 3/14/13 12:34 AM, Tim Gross wrote: > I want to know if it is possible to execute a binary program > (written in C) from within a JSP. I would like to do this on the > server side, not the browser, in Tomcat6. If it is possible, can > somebody provide an example. Sorry if I am using the wrong mailing > list. Feel free to redirect me if that is the case. Do yourself a favor and: a) Don't do this b) If you have to do it, do it in a servlet, not a JSP c) Limit the number of concurrent requests that are allowed to execute this child process d) Don't forget to flush/consume all your child-process's streams If you don't do (d), you'll probably bring your server to a halt unless nobody ever triggers this particular feature. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEAREIAAYFAlFDdr8ACgkQ9CaO5/Lv0PAADQCgmZccumNZBXYGjh9r57knUKfl sFkAoJ1BuHia39evFI50mbP03B0T/YHZ =4/BP -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org