问题:如何判断wget是否成功下载?

如题所述

我有一配合flashgot调用wget下载东东的shell脚本代码:#!/bin/bashtmp="$*"recordfile=$HOME/.wgetrecord.log#如果日志文件不存在则创建日志文件if [ ! -f "$recordfile" ]thenecho "#This is a record of wget download history, Please back up it usually"$recordfilefi#添加本次记录echo "`date +%F`-`date +%T` $tmp"$recordfileexport tmpexec xterm -title "wget" -e 'wget $tmpread -n 1exit 0'exit 0我想在记录之后标注是否下载成功,即下载完成?看返回值这招不灵啊
温馨提示:答案为网友推荐,仅供参考
相似回答