Killsmb

Wu, Stephen (Aco Service Co.) stephen.wu-eds at eds.com
Wed Sep 30 15:47:35 GMT 1998


killall doesn't work on our AIX to kill smb. Here is the one I have used on
my AIX for killsmb script:

ps -ef | grep samba | awk '{print $2}' >/tmp/sm

cat /tmp/smbidfile | while read processid
 do
   ps -ef | grep samba
   kill -9 $processid

   if [ $? -eq 0 ]
   then
       echo " =================== "
       echo " Just kill $processid"
       echo " =================== "
   fi
done


Stephen Wu
> *  Phone :    (248)265-0483  [8-365]
> *  Fax    :    (248)265-9221  [8-365]
> *  Email  :     Stephen.Wu-eds at eds.com
> 
> 
> 


More information about the samba mailing list