Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!pacbell.com!ames!sgi!brendan@illyria.wpd.sgi.com From: brendan@illyria.wpd.sgi.com (Brendan Eich) Newsgroups: comp.sys.sgi Subject: Re: Ical update wanted. Summary: killall plug Message-ID: <75585@sgi.sgi.com> Date: 20 Nov 90 03:44:57 GMT References: <9011160859.AA11697@karron.med.nyu.edu> <1990Nov19.171917.15946@relay.wpd.sgi.com> Sender: guest@sgi.sgi.com Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 26 In article <1990Nov19.171917.15946@relay.wpd.sgi.com>, schuman@sgi.com (Aaron Schuman) writes: > Dan> Is there a simple way to bump the calendar program > Dan> at night so that is shows the correct day if you > Dan> leave it running overnight ? > > I use this easy shell script (kept in ~/bin/cal_update): > > > kill `ps -ef | grep ical | grep -v ep | awk '{print $2}'` > /usr/sbin/ical > echo "sh /usr/people/schuman/bin/cal_update" | at 0500 tomorrow Another opportunity to plug killall(1M). The script becomes: killall ical /usr/sbin/ical echo "sh /usr/people/schuman/bin/cal_update" | at 0500 tomorrow If you don't want to dispatch ical with prejudice (killall delivers SIGKILL by default), use killall -TERM ical Kill(1) and csh's builtin namesake deliver SIGTERM by default. /be