Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. dexlabs

    c code to copy and reset an open file

    Got it, thanks for all your help.
  2. dexlabs

    c code to copy and reset an open file

    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...
  3. dexlabs

    c code to copy and reset an open file

    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...
  4. dexlabs

    c code to copy and reset an open file

    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...
  5. dexlabs

    c code to copy and reset an open file

    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...

Part and Inventory Search

Back
Top