Archive for January, 2010

Besides from using perl scripts, phpmyadmin and customized php pages, here is a quick way to fetch data from mysql database using shell script.

Just make sure you are currently running mysql from your box with existing database and table inside.
Read the rest of this entry

here is a simple way to call a simple bash script inside php script page and have a return value printed to your web page.
Read the rest of this entry

You need to unmount a CD or you want to pack away the external drive but when you try to umount it you get the dreaded “device is busy” message. Wouldn’t it be great if Linux actually told you what was keeping the drive busy? Here we are in 2008, I’m using Ubuntu Gutsy, and that message hasn’t changed in all the years I’ve used Linux.
Read the rest of this entry

The script found on the following site http://bashcurescancer.com

The a script is called monitorCpuUsage.sh. It is meant to be called from crontab and to inform you of processes or users who maybe using excessive amounts of cpu.
Read the rest of this entry

I am having 4 gb of ram in my production systems. and normally after 24 hours my nagios gives warning for insufficient memmory. when we check systems ,it always shows the memory in cache.
So we normally reboot the system to clear the cache from the memory till we find the following command.

Linux Command

sync; echo 3 > /proc/sys/vm/drop_caches