On Thursday 02 December 2010 00:02:39 Easton Birdsong wrote: > #!/bin/ksh > #Created by Easton Birdsong > echo Which program would like to kill? > read answer > VAR_PID=`pgrep $answer` > kill -9 $VAR_PID > exit > > I'm currently trying to create this into a bin file. If anyone could point > me in the right direction it would be greatly appreciated!
Pretty slick. I would have guessed that kill -9 $VAR_PID would have worked only on process names with only one instance, but I tried it on mplayer when there were two mplayers running and it killed them both. Kewl. STeveT Steve Litt Recession Relief Package http://www.recession-relief.US Twitter: http://www.twitter.com/stevelitt --------------------------------------------------------------------- Archive http://marc.info/?l=jaxlug-list&r=1&w=2 RSS Feed http://www.mail-archive.com/[email protected]/maillist.xml Unsubscribe [email protected]

