How to tack a command onto the end of a long-running Unix task, halfway through
kev.inburke.com
kev.inburke.com
$ touch asdf
$ tail -f asdf
^Z
$ fg; | grep foo
-bash: syntax error near unexpected token `|'learn to use /proc
That's a bit condescending. You could have gained more credibility by explaining how to do this using proc.
And by the way, /proc is kernel-dependent ;-)
I thought, meh that's a bit light as an answer but hoped it might pique someone's interest despite my brevity.