home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.orgchm.bas.bg
/
2014.06.ftp.orgchm.bas.bg.tar
/
ftp.orgchm.bas.bg
/
bin
/
killftpclients.sh
< prev
next >
Wrap
Linux/UNIX/POSIX Shell Script
|
2002-05-06
|
237b
|
11 lines
#!/bin/sh
date
ps -ww -C wu.ftpd -o pid,start_time -o " %a" --noheading | while read pid date name
do
if [ `expr index $date \:` = 0 ]
then
echo Killing PID=$pid Date=$date Name=$name
kill $pid
fi
done