Example of curl and bash usage through Perl to test if a server is up