bash script problem

Jude DaShiell jdashiel at shellworld.net
Sat Jun 22 16:05:28 UTC 2013


my getvinux.sh script isn't running correctly and I'm not sure bash has 
anything in it that can solve this problem.  I have a script that is 
downloading a vinux iso.  I have an md5sum command after that wget 
command.  The md5sum command executes before the iso is finished 
downloading and I'd like to have the md5sum command run only after the iso 
has completed its download.  The script follows:



--------------------------------------------------------------------------- 
jude <jdashiel at shellworld.net> About to block another web browser version?  
Ask yourself what Tim Berners-lee would do.
#!/bin/bash
# file: getvinux.sh - get latest vinux
wget -b --trust-server-names http://vinuxproject.org/Downloads/V4.0/vinux-4.0-desktop-i386.iso.md5 &&
wget -b --trust-server-names http://vinuxproject.org/Downloads/V4.0/vinux-4.0-desktop-i386.iso &&
date >>getvinux.log &&
md5sum --check --quiet vinux-4.0-desktop-i386.iso >>getvinux.log &&
exit 0




More information about the Blinux-list mailing list