0

Konsole, for example, only provides option to notify when there is activity or silence.

My particular case: I run a long-running program which turns out to occasionally prompt for user/password. It would be nice to be notified when a prompt string like /Please enter username/ appears on the terminal output, instead of having to repeatedly visit the terminal emulator window manually.

1
  • Running the program under shell mode in Emacs is an option, although I don't use the shell from within Emacs on a regular basis. Nov 4 '20 at 1:05
3

Pipe it like this:

yourprogram | while read xx ;do wall -- "$xx" ;done

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.