Pkill.sh [Shell script to kill process by name]
Thu, 06/03/2004 - 13:52 — himanshuIn *nix the "kill" command needs to know the pid(process id) of the process to kill it. So i decided to code a bash script to kill a process by name :
#!/bin/bash if [ $1 -eq ""]; then echo "Usage : ./pkill.sh <process name>" else get_proc=`ps -e -o pid,command | grep $1` echo $get_proc > get_it get_pid=`gawk -F" " '{ print $1 }' get_it` kill -9 $get_pid fi
The script is quite messy and certainly needs more improvement.
Google Tricks and hacks by d00m
Thu, 06/03/2004 - 13:30 — himanshuGoogle.com is undoubtedly the most popular search engine in the world. It offers multiple search features like the ability to search images and news groups.However it's true power lies in it's powerful commands that can be used and misused.I am writing this article on the basis of my experience using google and trying out ideas when i am bored.Now enough of lecturing...let's get
down to business.)