Shell One Liners

May 21, 2010 mohancheema 0

Renaming file name.old to name.new – To test things first, insert ‘echo’ between ‘do mv’ (below).

$ for i in *.input; do mv $i ${i/name.old/name.new}; done

Running application in loops on many input files

$ for i in *.input; do ./application $i; done

AWK One Liners

May 21, 2010 mohancheema 0

Simple AWK programs enclosed in single quotes can be typed and executed right at the Unix prompt. For example, the program

awk ‘BEGIN { FS = “:” } { print $1 | “sort” }’ /etc/passwd

This program prints a sorted list of the login names of all users.

No Picture

Advanced MRTG HowTo

April 28, 2010 mohancheema 4

Introduction

In many cases using MRTG in a basic configuration to monitor the volume of network traffic to your server isn’t enough. You may also want to see graphs of CPU, disk, and memory usage. This chapter explains how to find the values you want to monitor in the SNMP MIB files and then how to use this information to configure MRTG.

No Picture

Linux SNMP and MRTG HowTo

April 28, 2010 mohancheema 1

Introduction

You can monitor your system’s Web performance quite easily with graphical Linux tools. You’ll learn how to use several in this chapter, including MRTG, which is based on SNMP and monitors raw network traffic, and Webalizer, which tracks Web site hits.

No Picture

SVN Apache ADS HowTo

April 28, 2010 mohancheema 3

Subversion ADS Authentication with Apache

More and more companies are using directory services for housing their user credentials and information. Example directory services are Active Directory, eDirectory and OpenLDAP.

No Picture

Shell Script for Auto Merging of Subversion code

April 28, 2010 mohancheema 0

We have multiple project developments going on simulteanously and always had issues while merging the code to live. Issues were like code getting overwritten, full fucntionality loss. Hence I have written this script for auto merging of the code which has gone live to the development branch. This is done to eliminate the possibilities of above issues. I have used svnmerge.py utility which is available at http://www.orcaware.com/svn/wiki/Svnmerge.py#Downloads. I hope this script will be helpful for you

No Picture

Apache Tomcat Loadbalancing

April 28, 2010 mohancheema 0

This article contains step by step instructions for configuring an Apache web server which handles static content and delegates JSP (Java Server Pages) and Servlet requests to two Tomcat servers using AJP 13 connectors and a load balancing worker.

No Picture

Apache Tomcat Integration HowTo

April 28, 2010 mohancheema 0

Overview

This is to explain and understand how to integrate Apache and Tomcat to support Java Server Pages (JSP) and Servlets using Apache on your website. Although this setup worked for this particular environment, I can make no guarantees that it will work for yours, but it should with some tweaking. I have spent a lot of time gathering several resources in order to get this to work. Many portions of these resources have been deprecated and required a few workarounds. It is my intention that this tutorial will help anyone that has attempted to install such a system without success. If you find any inconsistencies within this tutorial, please notify me using the contact form.