Thursday, May 2, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1406  / 3 Years ago, mon, may 3, 2021, 11:31:24

When running time consuming processes in terminal, I like to add something like say "done" as an additional command so that I can get alerted when the current process ends. For example:



$ do_this_long_thing; say "done";


Works great. But sometimes I forget the say "done" command, only to realize it once the long command is already running. Is there a way to add that additional command to the queue once a command is already running?


More From » command-line

 Answers
2

In the terminal running the long running command, just type say done and hit enter. When the long running command finishes, shell will take what you typed as the next command to run. This assumes the long running command is not going to need to read anything from stdin,


[#18700] Monday, May 3, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tialmes

Total Points: 14
Total Questions: 108
Total Answers: 102

Location: Oman
Member since Thu, Jun 16, 2022
2 Years ago
;