http://bugs.openembedded.org/show_bug.cgi?id=888

           Summary: gpe-calendar & gpe-announce alarms will repeat /
                    duplicate until acknowledged
           Product: Openembedded
           Version: OpenZaurus 3.5.4.x
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Distributions
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]


Both gpe-calendar & gpe-announce produce scripts under /var/spool/at that will
keep on repeating / duplicating themselves until one is finally acknowledged.
This is because the script commands are run *before* the script is removed,
leaving the script in place until the commands have completed, so in the case of
gpe-announce, if the announce window isn't acknowledged befor the next time atd
cycles, the script is run again. For example:

 gpe-announce 'doctor appt'
 gpe-calendar -s 1145646000 -e 104 &

 rm -f $0

I would suggest that the 'rm -f $0' line be placed *before* the script commands
are run. The script is loaded into memory upon excecution, so removing it right
away won't prevent it running properly (tested & confirmed), and then the script
wouldn't be around for atd to pick up again.

 rm -f $0

 gpe-announce 'doctor appt'
 gpe-calendar -s 1145646000 -e 104 &

-- 
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Oe mailing list
[email protected]
https://www.handhelds.org/mailman/listinfo/oe

Reply via email to