I was building a rpmpackage for Tengine the Dynamic Module loading Nginx fork. As usual since there was a no decent tutorial I decided to write my own. Warning: DO NOT try as root for obvious Reasons First Install the necessary packages. sudo yum install rpm-build sudo yum install redhat-rpm-config Create the rpmbuild directories [userid@hostname […]
1 – stdout 2 – stderr This means redirect echo’s output to stderr, with a message on how to use the script, there needs to be exactly three arguments. All error conditions should go to stderr.
Hey Guys n Gals, I m back after a long time, work work work…..I have started to write small articles help full to others and this one is shell scripting interview questions. So here goes This was asked at Capgemini How will you save the output of the TOP command in a file? Use Top […]
Dowload expect.pm from ubuntu and install using dpkg packahe manager 1. Expect * a program to control interactive applications o it maybe possible to control interactive applications from other scripting languages as well + python, perl * expect programming is very easy compared to perl! o crackers use expect to try and gain access to […]
The most useful way to administer multiple servers A good tutorial on Shell scripting http://bash.cyberciti.biz/guide/Main_Page Useful Shell scripts for remote administration can also be found on the link below http://www.ibm.com/developerworks/aix/library/au-satdistadmin/index.html To find the size of large files on the remote server ssh user@server du -h -a -c /path/tofile |grep ‘G|M’ Shell script to get Information […]