killing sendmail

From: Hiranya Samarasekera (hiranya_linux_at_hotmail.com)
Date: 07/28/03


Date: Mon, 28 Jul 2003 11:27:17 +0600

Hi all,

According to Oreilley's Sendmail book, it give a command to kill the
sendmail process;
    % kill -HUP 'head -1 /var/run/sendmail.pid'
but it returns an error as;
    -bash: kill: head -1 /var/run/sendmail.pid: no such pid

The /var/run/sendmail.pid file does exist and contains;
    3290
    /usr/sbin/sendmail -bd -q1h

What's wrong with the kill command?

Thanks in advance,
Hiranya Samarasekera
www.AurigaSYS.com