Some thoughts.
You should know that signal handlers are not fully safe to do much in especially printing.
You probably want to set a flag in your handler and return. Then check the flag in your main code and write out relevant info and clear the flag.
As for reconnecting output with your terminal, I think you should look along the lines of an output file then in your session tail -f the file or look into syslog which can recieve messages from programs and then send them to users (you) when they are logged in. Messages collected while you are not logged in are tossed though unless you also have syslog send those messages to some file, which brings us back to the first method.
In reply to Re: Diagnositc output on background processes
by dga
in thread Diagnositc output on background processes
by gomez18
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |