#!/bin/sh # Created by Vinícius Muniz sudo /etc/init.d/apache2 start for i in google-chrome firefox mozilla konqueror; do if test -x "/usr/bin/$i"; then /usr/bin/$i http://localhost/example.php exit $? fi done