Archive for January, 2006

ψ, its ◊ no its ♦

Thursday, January 26th, 2006

when I started writing this post; I couldn’t find a proper title…Yokay, whenever I write/mention the word “good” in my blog… I think what is good…? Oh..opposite to bad…eha..?? …then what is that opposite means…??

I dont know when I had a thought about this…then I concluded there is nothing good or bad…its just a feeling…may be an imaginary hunch. Its all depends on you, me and the one who deals with it….Is that Taoism…. I guess Taoism says about the good and evil, the black and white side of the life and its balance. If you say/feel something is good, possibly ya are making its contrary part too…there is no Bad, if there is no Good…well… I don’t want to get into that, but I would say… just level up the thoughts with having controll over the mind…because…
The mind is a dangerous weapon, even to the possessor, if he knows not discreetly how to use it.”
- Michel de Montaigne (1533-1592)
that sounds … …eha…??

Home-Sweet Home

Monday, January 23rd, 2006

I have been to my home [sweet home] last weekend…and going next weekend too. Just like everyone, its a feeling (I say gOOd) that I dont get anywhere and ease the load in different ways.

When I have been to my home town anytime, I tried to get some time to visit the Lord Siva Temple around 6 Km away from my home. Its not just visiting the temple and offer my prayers to the God. The temple is so close to the Arabian Sea…yeah… I never had such a feeling, when I stand upon the sea-wall…then..then feel and taste the salty wind which blows around me at the time of when the sun goes down… When I had a look at the visible horizon… I know there is no meeting point for the sky and the sea, though it seems but I could find some twinkling and I am sure its not stars…though it seems. It might be a ship or a fishing boat….Huuhh… I am talking a lot about sea….never mind….sagar, my name means The Sea.

How much disk space ya left …??

Friday, January 13th, 2006

I gotta something… something wacky this time….

When one of our dear employee asked ” Is there any script to know the disk
usage of the system I am using….”

well….I snip one and it’s working fine…

++ Those who S [ ] I T before GATE, please excUse…

=====================================================

This shell script will help us to monitor the disk usage
If any of the disk partiotion space is more than 95%, all the users who were
logged into the system will get an ALERT message
Add the below line to “crontab -e” to run the program for every minute
*/1 * * * * sh /ya/path/to/diskUsage.sh
YMMV and if ya find any issue; please..try it out by yourself ‘/ ‘
tfeLYpoC

#! /bin/bash

df -h | grep -iv used |grep -iv media | awk ‘{print $6″ ” $5}’ |
while read ROW;
do PERCY=`echo $ROW | cut -d”%” -f1 | awk ‘{print $2}’`
if [ $PERCY -gt 95 ]; then
wall -n “ALERT..! from `hostname`
$ROW of the partition is FULL…! ”
fi
done