The nice/renice work-around seems to be working, but is there a way to see which pid is writing to that file so I'll renice only that pid. There's no way to distinguish it by just doing a ps command. If I have a c-program maybe to pass the file and see who's using it and return me the pid of...
Good input, I'll try that out.
One more question, is there a way we to change the filename connected to a file descriptor? I was thinking of tricking the application since its going by fildes and not filename to change the filename so it will start writing to that new file. Then I can process...
Unfortunately we don't have access to the source code that appends to the file. My main goal is chop the file at that point in time and process the file and zero it out without stopping the application that's writing to the file. It should be pretty simple enough but the application just writes...
Anyone out there kind enough to write me this c code, I'd greatly appreciate it because I'm not much of a c programmer. Or any advise that might help is ok too. Basically I want to write the contents of a moving/open file at the time of the read to another file, and then removing that part of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.