F
favoretti
Hi,
I'm trying to run a unix script from the java applet that is running
under tomcat.
The problem I'm stuck with is the fact that certain part of the script
has to be executed as a different user. I tried using both 'su' and
'sudo', but the script seems to hang at the point of execution of
those programs and blocks the whole thread, as I'm in need of the
returncode of the script, so I'm using waitFor().
Any ideas why it could hang?
Thanks in advance.
Regards,
Vladimir
I'm trying to run a unix script from the java applet that is running
under tomcat.
The problem I'm stuck with is the fact that certain part of the script
has to be executed as a different user. I tried using both 'su' and
'sudo', but the script seems to hang at the point of execution of
those programs and blocks the whole thread, as I'm in need of the
returncode of the script, so I'm using waitFor().
Any ideas why it could hang?
Thanks in advance.
Regards,
Vladimir