Is it possible to change a program's standard I/O while it's still running using bash?
e.g. If i did 'apt-get upgrade > log &', it would redirect apt-get's output to a file called log. But if I had apt-get running in the background with its output being directed to the screen, how could I change it to get directed to a file?
This sounds a little too ambitious, even for me, but there's gotta be some way to do it...
e.g. If i did 'apt-get upgrade > log &', it would redirect apt-get's output to a file called log. But if I had apt-get running in the background with its output being directed to the screen, how could I change it to get directed to a file?
This sounds a little too ambitious, even for me, but there's gotta be some way to do it...
