Archive for the ‘Shell Scripting’ Category

If your linux box doesn’t comes with YUM in default installation here is the step to follow on how to install YUM using rpm on CentOS 5.3 version 1. Check the OS version 1. Run the scripts on bash shell #cat > install_yum.sh for file in \ gmp-4.1.4-10.el5.i386.rpm \ readline-5.1-1.1.i386.rpm \ expat-1.95.8-8.2.1.i386.rpm \ python-elementtree-1.2.6-5.i386.rpm \ [...]

I am pasting simple shell script to monitoring the Disk Space and alerting system admin. Please be make sure that mail services is running on the server. We can set up cron job to execute this script periodically. —– #!/bin/sh #Disk Alert df  -h |grep -Ev  “(Filesystem|Use)” |while read OutPut do { Disk=$(echo $OutPut|awk -F” [...]