I have 4 instances of Tomcat to serve a JSP application. Every now and then I have to restart them all (when I recompile a class, for instance). But every time I have to restart their services one by one:
sudo service tomcat71 restart
sudo service tomcat72 restart
sudo service tomcat73 restart
sudo service tomcat74 restart
How can I put those commandis in a script so to run them all at once?
Thanks in advance!