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 7039449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:47:59+00:00 2026-05-28T01:47:59+00:00

After doing tons of research and nor being able to find a solution to

  • 0

After doing tons of research and nor being able to find a solution to my problem i decided to post here on stackoverflow.

Well my problem is kind of unusual so I guess that’s why I wasn’t able to find any answer:

I have a program that is recording stuff to a file. Then I have another one that is responsible for transferring that file. Finally I have a third one that gets the file and processes it.

My problem is:
The file transfer program needs to send the file while it’s still being recorded. The problem is that when the file transfer program reaches end of file on the file doesn’t mean that the file actually is complete as it is still being recorded.

It would be nice to have something to check if the recorder has that file still open or if it already closed it to be able to judge if the end of file actually is a real end of file or if there simply aren’t further data to be read yet.

Hope you can help me out with this one. Maybe you have another idea on how to solve this problem.

Thank you in advance.

GeKod

  • 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-28T01:47:59+00:00Added an answer on May 28, 2026 at 1:47 am

    Simply put – you can’t without using filesystem notification mechanisms, windows, linux and osx all have flavors of this. I forget how Windows does it off the top of my head, but linux has ‘inotify’ and osx has ‘knotify’.

    The easy way to handle this is, record to a tmp file, when the recording is done then move the file into the ‘ready-to-transfer-the-file’ directory, if you do this so that the files are on the same filesystem when you do the move it will be atomic and instant ensuring that any time your transfer utility ‘sees’ a new file, it’ll be wholly formed and ready to go.

    Or, just have your tmp files have no extension, then when it’s done rename the file to an extension that the transfer agent is polling for.

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

Sidebar

Related Questions

After doing a long search on stackoverflow i didn't find any one talked about
After doing some research on this issue, I couldn't find any satisfying fix. The
after doing some preliminary searching, I was not able to find much information on
After doing lot of research in Google, I found this program: #include <stdio.h> int
After doing some research on the subject, I've been experimenting a lot with patterns
After doing some research, it would seem that errno 150 occurs when either table
After doing my research, I could not get an answer for this question: When
after doing some research it seems that AppDomains are not really a tool for
After doing some research I heard only PHP 5.3.6+ supports PDO and SSL. I
After doing a couple hours of research, I found out that there are multiple

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.