Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I ran a shell command the other day which produced more output than expected. It was writing to a file on a filesystem with very little available space and could have filled the filesystem. The command took a long time to run so rather than rerunning it with a different output location, I would like to have been able to switch the output destination while it was running. Is this possible?

I know that renaming the file wouldn't work because the system uses the inode number rather than the name, what options do I have?

share|improve this question

1 Answer 1

Look at this one:

http://etbe.coker.com.au/2008/02/27/redirecting-output-from-a-running-process/

share|improve this answer
1  
Please include some detail as to what the link contains; if the site goes down, the answer in its current state will be useless... –  jasonwryan Aug 9 '12 at 17:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.