Subject: Re: Running a program while the machine is off Date: Sun, 25 Jun 2000 13:46:32 +0100 Newsgroups: discussion.epoc.OPL Hi, The code below wakes up the machine (if off) at a certain date, is that what you need? proc main: local switchOnTime& local timH%,timStatus% rem the datetime you want the machine to switch on again switchOnTime&=DateToSecs(yyyy,mm,dd,hh,mm,ss) rem setup the timer ioopen(timH%,"TIM:",-1) rem start the timer ioc(timH%,2,timStatus%,switchOnTime&,switchOnTime&) rem you can switch off the machine here with "OFF" or the user could too rem (which you wouldn't have been able to do with OFF n%) iowaitstat timStatus% ioclose(timH%) print "Machine is on, on",datim$ get endp Best Regards, Richard Betts, NEUON antonio brazao wrote in message > Hi there > > I am trying to write an alarm-clock and can't see how I can run my program > to continuously monitor the system clock while the machine is off? Does > anyone have any idea? How does the built-in alarm clock work? > > Thanks > Tony >