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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:04:01+00:00 2026-05-25T13:04:01+00:00

I am using an asynchronous webservice which send me back a Job ID. The

  • 0

I am using an asynchronous webservice which send me back a Job ID. The full response is then send by the webservice as an XML file (jobId.xml) to my server using a PUT request.


After issuing the request to the webservice and getting the jobID, I
would like to know what would be the best (most efficient) way to wait
until the file is created into the PUT directory of my server?


I am thinking of a loop of file_exist() with a usleep() between each execution and with a timeout.

But I am sure that there is a better way.
Something like a listener…

The file can take less than a second to more than 1 minute to arrive.

Thanks!

  • 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-25T13:04:02+00:00Added an answer on May 25, 2026 at 1:04 pm
    1. You could use inotify to watch for file creations in some directory.

    2. Alternatively you could modify your PUT handler to notify your script. For example, you could create a named pipe, read from it (blocking), and modify your PUT handler to write on the pipe one it has written the file

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

Sidebar

Related Questions

I am using nested Asynchronous callbacks to save my front-end data to the back-end
I send asynchronous call using jQuery form plugin and in the case of success
I have a asynchronous web service using axis2 which I call two different times
I have a page which is fetching data from a webservice using async call.
Im using asynchronous threading in my application WITH httpClient. I make a call using
I know that it's possible to implicitly provide asynchronous interaction using: Asynchronous Delegates Asynchronous
I'm confused about the correct way of using asynchronous socket methods in C#. I
Writing an asynchronous Ping using Raw Sockets in F#, to enable parallel requests using
I am trying to make asynchronous calls using xmlhttprequest object so it completely works
In .Net, suppose I instantiate an object that starts an asynchronous process (using Delegate.BeginInvoke

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.