Re: Automatic notification to application based on system date and time (Monta-vista linux)



On a sunny day (Thu, 28 Sep 2006 16:35:32 +0200) it happened Toni Erdmann
<for-spammers-only@xxxxxx> wrote in <efgmjk$ea$2@xxxxxxxxxxxxxxxxxxxxx>:

Toni Erdmann wrote:

dadu wrote:

Hello guys,

I need OS support in my application to receive signal or event from OS
when I configure it for particular date and time. In short, I am
expecting OS notification in my application on particular date and
time. Can anybody please help me on, how to implement this on linux?


what about:

echo "killall -USR1 programm" | at -t 200610011100.00

to send the signal USR1 to your program on Oct 1, 2006 at 12:00:00 AM
^^

Sorry, I mean 11:00:00 AM

Toni

Too late, you missed it ;-)
Yes this is a nice way.
But 'killall' is a bit dangerous, then use kill with the pid, killall
will kil lall instances.
.



Relevant Pages

  • Re: killall like linuxs
    ... > Shea Martin wrote: ... In linux killall will do this. ... which contains PID. ...
    (comp.unix.solaris)
  • Re: killall like linuxs
    ... In linux killall will do this. ... In solaris, killall does something ... If you kill the complement of the PID, ...
    (comp.unix.solaris)
  • Re: need script to start and kill a process
    ... >>and myifdown finding the pid for the process and killing it. ... > Old Linux systems have killall. ... Hehe, years ago, when attempting to remember a script name to kill ... certain processes I typed in "killall". ...
    (comp.unix.shell)
  • Re: PID of a process
    ... LEE Sau Dan wrote: ... > What if any instance of B died before A calls killall()? ... I'm temped to say that it is unlikely that PID wrap-around will occur ... Josef Möllers ...
    (comp.os.linux.development.system)
  • Re: "killall" madness
    ... > Try running strace on killall to see what it's really doing. ... Here are the outputs on my machine and on another box where killall ... And here is the ouput of the broken killall (yes has pid 2336): ...
    (comp.unix.programmer)