Update x2t.sh

This commit is contained in:
tianyu 2015-08-09 10:35:01 +08:00
parent b10911e9b6
commit 45d1cd0da3
1 changed files with 13 additions and 10 deletions

View File

@ -68,6 +68,7 @@ x2jpg(){
exec 6>&- # close fd6
mv /tmp/jpg/* .
pwd
rm -r origin
echo 'DONE!'
@ -78,7 +79,8 @@ x2jpg(){
while [ -f /tmp/.x2t ]
do
echo "wait other job exit"
sleep 2
#sleep 2
sleep $[ ( $RANDOM % 10 ) + 1 ]
done
touch /tmp/.x2t
@ -119,4 +121,5 @@ else
echo "$DIR not exist."
fi
sync
rm /tmp/.x2t