On Thu, Apr 16, 2009 at 09:58:34AM +0300, Tapani Tarvainen wrote: > On Thu, Apr 16, 2009 at 11:28:10AM +0530, Kurian Thayil > ([email protected]) wrote: > > > I got your modification working only when telnet gives a prompt, > > Right you are - telnet doesn't react to the escape sequence > before connecting. Bummer. :-( > > Oh well, just kill it then: > > #! /bin/bash > case "$( (sleep 5; echo quit; ps |awk '/telnet/{print "kill "$1}' |sh) | > telnet 192.168.0.20 25 2>&- )" > in > *' > 220 '*) echo Success ;; > *) echo Failed ;; > esac
can you use nmap ?
>
>
--
"Trying to stop suiciders --which we're doing a pretty good job of on
occasion-- is difficult to do. And what the Iraqis are going to have to
eventually do is convince those who are conducting suiciders who are not
inspired by Al Qaeda, for example, to realize there's a peaceful tomorrow."
- George W. Bush
05/24/2006
Washington, DC
signature.asc
Description: Digital signature

