Bug 101823

Summary: event monitor: add ability to execute a script
Product: [Applications] kst Reporter: Nicolas Brisset <nicolas.brisset>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: VLO    
Version: 1.x   
Target Milestone: ---   
Platform: unspecified   
OS: Solaris   
Latest Commit: Version Fixed In:

Description Nicolas Brisset 2005-03-18 17:16:32 UTC
Version:           1.1.0_devel (using KDE 3.3.1, compiled sources)
Compiler:          gcc version 3.4.1
OS:                SunOS (sun4u) release 5.8

Currently, the event monitor allows to send e-mails, notify via elog, or log events in some output (where ?). I think it would be nice to add the possibility of executing an arbitrary script. That opens up a broad spectrum of new possibilities, especially using dcop.
Comment 1 Andrew Walker 2005-03-18 18:43:47 UTC
The output can be found under the Help...Debug Kst... menu item. Then click on the Log tab. Perhaps this should be made more prominent, and not be called Debug.
Comment 2 Andrew Walker 2005-05-10 21:41:06 UTC
Agreed. This would be useful. Probably the best option would be to run a js script (once the js feature has been implemented).
Comment 3 George Staikos 2005-08-08 21:48:20 UTC
It's a nice idea, but it's non-trivial right now.  It would probably require a means for the JS extension to hook into the event triggering code and add a new type of action itself.  This would have to send an event over the event loop to the main thread to trigger script execution.  We could end up with out-of-sync script execution due to this I think, not to mention scripts running while others are running.
Comment 4 Netterfield 2006-02-15 00:33:07 UTC
This can be implemented with equations and kjs already, and need not be connected to events.

Comment 5 George Staikos 2006-05-29 18:09:51 UTC
Will be implemented after all
Comment 6 George Staikos 2006-05-29 18:10:06 UTC
Done