Bug 150655 - scan terminal content to activate audible or visual alarm
Summary: scan terminal content to activate audible or visual alarm
Status: RESOLVED DUPLICATE of bug 75025
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-10 09:53 UTC by tklopp
Modified: 2007-12-19 00:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tklopp 2007-10-10 09:53:01 UTC
Version:           1.6.6 for kde 3.5.7 (using KDE KDE 3.5.7)
Installed from:    Debian testing/unstable Packages
OS:                Linux

I often start admin tasks that take serveral minutes or hours. It would be very helpful if I could activate a "scan" function in konsole to scan the output of the tasks/processes I've started on the remote server. This function would set off an alarm (audible, visual, start program) if a configured line (regexp) is written into the terminal by the remote program.

Example: I start a "mysql check" on a remote server and want to get an alarm when the check finishes and the remote prompt is back. I would set a regexp or chose the regexp with my account name in the konsole scan menu and konsole would notify me at the moment the prompt is back. I could do other stuff in the mean time without having to check back every 5 minutes.
Comment 1 Constantin Berzan 2007-10-10 17:32:11 UTC
Most of what you say can be accomplished with grep and Konsole detecting silence / activity.
Comment 2 tklopp 2007-10-11 23:01:17 UTC
Thats not true for me. The external process has been started and while waiting for the result I realize it may take long: I cannot stop the process and must wait until end. It is not possible to stop it and pipe the output through grep -- I need the output to see wether there are errors. And there are processes I cannot stop like builind an index in a big mysql database.

I don't want to watch the terminal all the time -- I want to switch to another screen and do other things until a signal tells me "Hey, the process you started an hour ago is now complete!".
Comment 3 Matthew Woehlke 2007-10-11 23:18:36 UTC
1. ctrl-z
2. fg ; echo $? ; printf '\a'

...will produce a bell (which makes a certain amount of "noise") after the current command completes. You can substitute the printf for anything you like. (Hmm, although if it is remote, probably not much more than the \a is useful unless you can ssh passwordless back into your machine to do stuff.)
Comment 4 Robert Knight 2007-12-19 00:52:02 UTC

*** This bug has been marked as a duplicate of 75025 ***