Ubuntu Forums > The Ubuntu Forum Community > Ubuntu Specialised Support > Development & Programming > Programming Talk > [SOLVED] how do you halt a bash script until the previous command is done
PDA
View Full Version : [SOLVED] how do you halt a bash script until the previous command is done
HokeyFryOctober 2nd, 2007, 07:21 PMi am trying to make a script to download a multipart RAR archive while i am gone at work. there are 50 or so parts to it, and this is what essentially my script consists of:
wget rarfile.partX.rar
50 or so times. How do I tell the script to wait until the previous wget command is finished running?
aks44October 2nd, 2007, 07:26 PMHow do I tell the script to wait until the previous wget command is finished running?
You don't. This is the default behaviour. Did you even try it before posting?
HokeyFryOctober 2nd, 2007, 07:29 PMyeah i did, it just flew through each file and didnt download any of them
aks44October 2nd, 2007, 07:34 PMyeah i did, it just flew through each file and didnt download any of them
Hmm better post your whole script then.
wget http://server.com/file downloads a file, and doesn't return until it is downloaded, so I guess your problem is elsewhere...
HokeyFryOctober 2nd, 2007, 07:35 PMi found the problem, the site that was hosting the file wanted me to click a bunch of buttons first, so i think that was the issue. ill just have to do it manually
thanks though i know the default behavior now
aks44October 2nd, 2007, 07:42 PMUnless the server uses session-based tickets, there has to be a direct download link...
When you find it you can automate the download. :)
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.
|