leave: A Maddening Aid to Quitting on Time

Time to leave! The message flashes across your screen, the terminal bell rings. You keep working.

You're going to be late! Another message, a minute later. Sheesh. Did your mother learn to use write (), or what?

No. It's the leave program that you started to remind you of a meeting. (A little while ago, it already told you that You have to leave in minutes.) If your system has leave, you can start it in one of three ways:

When will it stop nagging you? When you log out, leave stops automatically. Also, newer versions of leave will quit after ten minutes, saying That was the last time I'll tell you. Bye. Older versions keep on forever.

On some versions of leave, you can't set an alarm for any time tomorrow (past midnight). But you can use sleep () to start the leave past midnight. For example, maybe it's 10 p.m. now and you want to leave at 1 a.m. Midnight is two hours or 7200 seconds (60 x 60 x 2) from now. Add a fudge factor of 10 minutes (600 seconds) and type:

( ) 
$ (sleep 7800; leave 100) & 1234

You can also kill leave-though you have to use the "sure kill," signal 9 (). To see leave lurking in the background and get its PID (), you usually need the ps () -x option. Piping through grep leave will shorten the ps output:

% ps x | grep leave 6914 p3 S 0:00 leave 19283 p3 R 0:01 grep leave % kill -9 6914


- JP