This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Ability to Be Notified when Command Line Tasks Finish

45

Votes
48
3
Tags: konsole, terminal, command line, compiling konsole, terminal, command line, compiling konsole, terminal, command line, compiling
(comma "," separated)
User avatar
Kubuntiac
Registered Member
Posts
786
Karma
2
Often you need to do things in the command line that take time to finish. It would be great to be able to get a notification when tasks are finished and you're returned to the command prompt.

I'm aware of the "monitor silence" option in Konsole. Trouble is that that's triggered by nothing being output for a few seconds, even if the current task isn't finished.

I'm talking about something that just monitors specifically if the command prompt is waiting for your response or not.

Imagine how much more you could get done (especially compiling) if you knew the moment that a long task finished, and you didn't have to sit there watching?
User avatar
annew
Manager
Posts
1155
Karma
11
OS
It probably should be an option, rather than fixed, but yes, I'd like that. I'll vote for it


annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org
User avatar
Alec
Registered Member
Posts
565
Karma
1
OS
You can always do
Code: Select all
$ long-task; kdialog --msgbox 'Done'
;)


Get problems solved faster - get reply notifications through Jabber!
User avatar
Kubuntiac
Registered Member
Posts
786
Karma
2
annew wrote:It probably should be an option, rather than fixed


Dear Lord, yes! I hope it didn't come across that I was saying it should do this for *every* command! I was thinking something more like how you can turn on "Monitor for silence / activity" and turn it off again when done.

@Alec, thanks, I'll use that! That said, I'm lazy. I don't want to *need* to know that command, and even if I do, I'd rather just have an option in a menu. Like I said. I'm pretty lazy. :)
User avatar
MirzaD
Registered Member
Posts
86
Karma
0
OS
I was going to say:
"long-task && kdialog --passivepopup 'Task Complete' 5"

but Alec solution is good:)

Mine is more 'plasma' style ;):D:D
User avatar
Kubuntiac
Registered Member
Posts
786
Karma
2
MirzaD wrote:Mine is more 'plasma' style ;):D:D


Thanks! I like "lazy and don't have to remmember a CLI command to work" style. Failing that, Plasma style is the next best thing. ;)
User avatar
Alec
Registered Member
Posts
565
Karma
1
OS
You can also add
Code: Select all
alias d="kdialog --passivepopup 'Task Complete'"
to ~/.bash_profile so that instead of remembering the command you could just write "d".

(Also I suggest not using a timeout because you will not notice your task finished if you were afk at that time)


Get problems solved faster - get reply notifications through Jabber!
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
And I suggest to not use &&, because then it won't run if the command fails.

This was brought up in another topic (not talking about yours Kubuntiac). I don't think we reached any conclusion, but I wrote that don't know if it's possible for Konsole to know when a command has finished.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]