Checking for new mail (and killing bkgnd process on logout?)
Joseph D. Shapiro
shap at bunker.UUCP
Wed Aug 30 23:06:28 AEST 1989
In article <128 at isgtec.UUCP> bmw at isgtec.UUCP (Bruce Walker) writes:
>My (slightly klugey) solution is to add a line to my .logout (csh):
>
> /bin/kill -9 `ps x | awk '$5=="checkmail" {print $1}'`&
>
>Anyone know a better way?
when initiating it in .login:
checkmail&
echo $child > ~/kill.$$
in .logout:
kill -9 ` cat ~/kill.$$ `
--
__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__
Joe Shapiro "My other car is a turbo...
ISC-Bunker Ramo ...too."
{decvax,yale,philabs,oliveb}!bunker!shap
More information about the Comp.unix.wizards
mailing list