njbhatt's blog

Unix Interview Questions

SECTION - I 

Zimbra & RedHat Enterprise 4

Use the following steps to install Zimbra on a Red Hat Enterprise Linux 4 system.

Unix Fundamentals

UNIX Concepts
SECTION - I
FILE MANAGEMENT IN UNIX

1. How are devices represented in UNIX?

RedHat HPC Solution

Here you can download RedHat HPC Solution Overview.

Distributed SSH Script

Here I added 2 scripts for distributed ssh.

1. Distributed SSH

#!/usr/bin/bash
#
## sh batch_ssh.sh "machine1 machine2" 'uptime'
## sh batch_ssh.sh "`cat servers.txt`" 'uptime'
#

## global options
TIMEOUT=3
OUTLOG=/tmp/remote-out-$$.log

## command line options
MACHINES=$1;shift
COMMAND=$1;shift

## distribute commands to machines
for machine in $MACHINES
do
echo $machine >>$OUTLOG.$machine
ssh -q -oStrictHostKeyChecking=no -oBatchMode=yes -oCompression=yes \
-oConnectTimeout=$TIMEOUT -l root $machine $COMMAND >>$OUTLOG.$machine \

Syndicate content
web counter