You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "zeallousbigpond.net.au" <ze...@bigpond.net.au> on 2003/10/15 14:10:45 UTC

Can JSP run sys command lines?

Can JSP call system exec commands in linux?.....

Runtime.getRuntime().exec("pdflatex")

does this work in JSP? ......fyi, pdflatex is installed in another server..

so..when you run exec in tomcat...does it run and view those commands/programs that exist ONLY in the tomcat directory?

Anson
                                                                      


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Can JSP run sys command lines?

Posted by Tim Funk <fu...@joedog.org>.
The restrictions are the same as launching any process from java. Such as
- Relative vs absolute command line
- If relative - is the current working dir correct
- Is the user_id of the running process correct
- Environment variables carried to the child process
- If there is a secutiry manager - will it allow exec
- ...

-Tim

zeallousbigpond.net.au wrote:

> Can JSP call system exec commands in linux?.....
> 
> Runtime.getRuntime().exec("pdflatex")
> 
> does this work in JSP? ......fyi, pdflatex is installed in another server..
> 
> so..when you run exec in tomcat...does it run and view those commands/programs that exist ONLY in the tomcat directory?
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org