karron@KARRON.MED.NYU.EDU (11/16/90)
Is there a simple way to bump the calendar program at night so that is shows the correct day if you leave it running overnight ? I don't log out every day, and work overnight, so I forget to restart the calendar to get the correct date. Cheers! dan. +-----------------------------------------------------------------------------+ | karron@nyu.edu (mail alias that will always find me) | | Dan Karron | | . . . . . . . . . . . . . . New York University Medical Center | | 560 First Avenue \ \ Pager <1> (212) 397 9330 | | New York, New York 10016 \**\ <2> 10896 <3> <your-number-here> | | (212) 340 5210 \**\__________________________________________ | | Please Note : Soon to move to dan@karron.med.nyu.edu 128.122.135.3 (Nov 1 )| +-----------------------------------------------------------------------------+
schuman@sgi.com (Aaron Schuman) (11/20/90)
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
brendan@illyria.wpd.sgi.com (Brendan Eich) (11/20/90)
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
dwatts@ki.UUCP (Dan Watts) (11/20/90)
In article <9011160859.AA11697@karron.med.nyu.edu> karron%CMCL2.NYU.EDU@cunyvm.cuny.edu writes: > >Is there a simple way to bump the calendar program at night so that is >shows the correct day if you leave it running overnight ? >I don't log out every day, and work overnight, so I forget to restart >the calendar to get the correct date. >Cheers! >dan. If anyone would like a copy of ical.c that I've updated to do just this, just send me email. I've got it to automatically change the calendar at night, as well as reset to the current month 60 seconds after the month has been changed via the <LEFT> or <MIDDLE> mouse buttons. -- ##################################################################### # CompuServe: >INTERNET:uunet.UU.NET!ki!dwatts Dan Watts # # UUCP : ...!{uunet | wgc386}!ki!dwatts Ki Research, Inc. # ############### New Dimensions In Network Connectivity ##############