Archive for April, 2010

List IPs on a Linux box

Posted: 29th April 2010 by Valkyrka in bash

Here is how you can list all the IP addresses set on a Linux box : Sample output :

Get the HTTP status code of URL

Posted: 29th April 2010 by Valkyrka in tips & tricks

Here is how you can get the HTTP status code of a URL : Sample output :

Small script to restart Apache if it's not running

Posted: 29th April 2010 by Valkyrka in apache, bash

This is a *very* small script which I wrote that checks if Apache is running and, if not, it starts Apache :