Thanks William and Kalpesh!
Actually, I want to start Tomcat using a script. Before starting tomcat in a port, I want to check whether someother application or someother tomcat itself is running on that port. If some application is running on that port, I can start Tomcat in a different free port.
So, is there a way to dynamically set Tomcat port, before starting it?
Thanks and regards,
Jaffer.