Jump to content

Quick question about sleep function


Recommended Posts

It'll resume from that exact spot.  But keep in mind that external resources like the connection to your database or connection to the web browser may time out if you sleep for too long.  Apart from that you should have no problems.

Link to comment
Share on other sites

I have written a script that reads a directory of .gz files unzips to a new directory, them deletes the .gz files, and uploads the file to the database, and deletes the text file and it needs to go through about 300+ files. But some of the files have 750,000 + records and 30 seconds is not enough time so I need to break the upload down in the middle some where, and again before it starts the next file. I think I got that all right.

Link to comment
Share on other sites

This thread is more than a year old.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.