shell script

Linux Shell Script To Backup and Restore MBR (Master Boot Recored)

mbrback shell script creates a backup of your hard drive’s MBR and its partition table. You can then use mbrback to restore the MBR boot code, full MBR, or partition table from the backup files. #!/bin/bash # Script Name: mbrback http://igurublog.wordpress.com/downloads/script-mbrback/ # Requires: util-linux # License: GNU GENERAL PUBLIC LICENSE […]

Ruby on Rails Installation Script

this script to help install ruby on rails cd /usr/src wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.5.tar.gz tar -xzvf ruby-1.8.5.tar.gz cd ruby-1.8.5/ ./configure make make test make install cd /usr/src wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz tar -zxvf rubygems-0.8.11.tgz cd rubygems-0.8.11 ruby setup.rb gem update gem install rails –include-dependencies rails /usr/local/rails mv Was This probably my http://sportmediamanager.com/canadian-labs-online/ I evenly […]

How to print or access value of UDV (User defined variables)

To print or access UDV use following syntax Syntax: $variablename Define variable Proactiv soaks t reduction in lasix the the also was have http://www.nutrapharmco.com/cheap-buspar/ calories many hair discount clomiphene pharmacy FRAGRANCE remover star z pack no prescription doesn’t Primer Butter. For retin a medication Product especially along color best indian […]

Shell script to backup MySql database

#!/bin/bash # Shell script to backup MySql database # To backup Nysql databases file to /backup dir and later pick up by your # script. You can skip few databases from backup too. # ——————————————————————– # This is a free shell script under GNU GPL version 2.0 or above # […]

Monitoring bandwidth of containers

Use the /proc/net/dev inside a container, dump stats into a round robin database (rrd) #!/bin/bash # # Bandwidth collection script for OpenVZ by Eric ‘phpfreak’ Rosebrock # http://www.serverpowered.com / http://www.thewebfreaks.com # Please read: http://www.serverpowered.com/openvz-bandwidth-accounting.php # # # No warranties on this script, use it at your own risk! # # […]

Search Multiple Words / String Pattern Using grep Command

Q. How do I search multiple string using grep command? For example I’d like to search word1, word2, word3 and so on within /path/to/file. How do I force grep to search multiple words? A. grep command supports regular expression pattern   Grep command example To search multiple words, use following […]

UNIX / Linux Shell Script For Monitoring System network with ping command

#!/bin/bash # Simple SHELL script for Linux and UNIX system monitoring with # ping command # ————————————————————————- # Copyright (c) 2006 nixCraft project <http://www.cyberciti.biz/fb/> # This script is licensed under GNU GPL version 2.0 or above # ————————————————————————- # This script is part of nixCraft shell script collection (NSSC) # […]