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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:19:41+00:00 2026-06-01T21:19:41+00:00

I need to implement some kind of files download queue. I plan to use

  • 0

I need to implement some kind of files download queue. I plan to use wget for file download.

My question is – how to get information from wget when the file has been downloaded ?

Is it possible to setup callback or trigger on wget in order to do that ?

Also, you are welcome to recommend some other stuff instead of wget in order to use it for files download.

Thanks in advance,
Alex

  • 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-06-01T21:19:42+00:00Added an answer on June 1, 2026 at 9:19 pm

    If you have access to wget, then I’m thinking you can execute bash scripts, i would suggest you to run a bash script in the background (one that you execute from php)

    it would be a smart idea to run the bash script in the background because some large files might take really long time to download, so you would not have your user wait for the file to finish but rather leave the page and come back later and he will see whether the file is finished downloading or not.

    if i was to do this, what i would do is, i will create bash script that will run wget, and when it finishes downloading it triggers some action, say updates a database, or runs a php script which will update the database and set the file status to downloaded, or if u do not wish to use databases you can have the bash script send an email to the user when the file is finished, email with the file link or something like that.

    i am not sure i totally got your idea but i answered based on what i thought you meant.

    anyway here is an example bash script which you can use to download files

    #!/bin/bash
    
    wget $1
    
    SUBJECT="$1 is ready"
    EMAIL="$2"
    
    # Email text/message
    EMAILMESSAGE="/tmp/emailmessage.txt"
    echo "you can download your file using this link \n http://somesite/$1" > $EMAILMESSAGE
    /bin/mail -s "$SUBJECT" "$EMAIL" < $EMAILMESSAGE
    

    you can execute that bash script from php like this:
    shell_exec(“scriptfile link email &”);

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

Sidebar

Related Questions

I need to implement some form of communication mechanism in my application, to send
I need to implement for current project some secure login in php. I wrote
I need to implement something. Something that could do some certain task in my
SO buddies, greetings. I have some password requirements I need to implement and one
So, I need some way to implement an undirected network ( I think this
I have some large files (hundreds of MB) that I need to search for
I'm trying to implement some kind of 'multiprocessing' in php for my task. The
Currently I'm trying to implement some kind of object stream, similar to the structure
Lyrics: I try to implement a task pool over MPI. So I need some
In a UITableViewController subclass, there are some methods that need to be implemented in

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.