Ical update wanted.

Brendan Eich brendan at illyria.wpd.sgi.com
Tue Nov 20 14:44:57 AEST 1990


In article <1990Nov19.171917.15946 at relay.wpd.sgi.com>, schuman at 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



More information about the Comp.sys.sgi mailing list