Answer the question
In order to leave comments, you need to log in
How to execute command after wget recursive download finished?
It is required to execute some command (for example, mv) after the recursive download of the site is completed using the wget program (switch -r).
I tried to write a script where the first line is wget -r, and the second is my command. The command is executed without waiting for the site to finish loading.
Tried to write a script: wget -b -r ... ; wait; <my team>. Again the same thing.
Answer the question
In order to leave comments, you need to log in
If I understand correctly, the -b key means "background", that is, the background mode. If this option is removed, then the next command in the script will be executed only after the completion of wget, which is what we wanted.
wget -b -r ... ; wait; <my team>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question