With some common UNIX utilities, it is possible to send a signal to the process that will cause it to take some instantaneous action (like print out progress):
If dd receives a SIGINFO (see the status argument for stty(1)) signal, the current input and output block counts will be written to the standard error output in the same format as the standard completion message. If dd receives a SIGINT signal, the current input and output block counts will be written to the standard error output in the same format as the standard completion message and dd will exit.
Is there a way to do something similar within Julia? I have a long-running (silent) process. I’d like to be able to press a key, or send a signal, and have the process catch the input and display its status. I don’t really want something like ProgressMeter (though it’s awesome); I’d prefer to be completely silent until some action is taken.
Any ideas?
Edit: ref Signal handling from user code · Issue #22883 · JuliaLang/julia · GitHub