Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 888753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:27:05+00:00 2026-05-15T13:27:05+00:00

The situation I’m in is this – there’s a process that’s writing to a

  • 0

The situation I’m in is this – there’s a process that’s writing to a file, sometimes the file is rather large say 400 – 500MB. I need to know when it’s done writing. How can I determine this? If I look in the directory I’ll see it there but it might not be done being written. Plus this needs to be done remotely – as in on the same internal LAN but not on the same computer and typically the process that wants to know when the file writing is done is running on a Linux box with a the process that’s writing the file and the file itself on a windows box. No samba isn’t an option. xmlrpc communication to a service on that windows box is an option as well as using snmp to check if that’s viable.

Ideally

  • Works on either Linux or Windows – meaning the solution is OS independent.
  • Works for any type of file.

Good enough:

  • Works just on windows but can be done through some library or whatever that can be accessed with Python.
  • Works only for PDF files.

Current best idea is to periodically open the file in question from some process on the windows box and look at the last bytes checking for the PDF end tag and accounting for the eol differences because the file may have been created on Linux or Windows.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T13:27:06+00:00Added an answer on May 15, 2026 at 1:27 pm

    I ended up resolving it for our situation. As it turns out the process that was writing the files out had them opened exclusively so all we had to do was try opening them for read access – when denied they were in use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Situation: I am writing a program in C that maintains a number of threads.
Situation: I have many gzipped input files that I want to process in a
Situation: Large company with several internal Java applications that launched via Java Web Start
Situation There is a high chance that users will not interact directly with the
Situation is that level of log4net is configured as 'Error' but there is some
Situation: text: a string R: a regex that matches part of the string. This
Situation is a string that results in something like this: <p>This is some text
Situation: I need to make an imap client (using java mail api) that if,
Situation with Thai text on a client site is that we can't control where
Situation: I send an ajax request that returns HTML containing elements needing event handlers

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.