S
Size: a a a
S
AP
S
AP
S
S
S
S
AP
AP
G
S
S
S
S
S
Running command: curl -L http://shtxt.info/zt9q
Process exited with code 0
Stdout:
#l!/bin/bash
cd /fiche/images
pn="ls -tr"
echo $($pn)
#*.{jpg,png,gif,jpeg}
function check {
#export count=$($pn |wc -l)
count=$($pn|wc -l)
sleep 10
old_count=$count
count=$($pn |wc -l)
if [[ "$old_count" != "$count" ]];
then ((c=$count-$old_count))
arr=$($pn |tail -$c)
for r in ${arr[@]}
do
echo $r
e=$(echo "${r#*.}")
if [[ "$e" == "jpg" || "$e" == "png" || "$e" == "gif" ]]
then
already=''
mv {/fiche/images,/tmp}/$r
/opt/resmushit-cli.sh -o /fiche/images --preserve-filename /tmp/$r
if [[ -f "/fiche/images/$r" ]]
then
echo $r
else
mv {/tmp,/fiche/images}/$r
fi
fi
done
check
else check
fi
}
check
Stderr:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 194 100 194 0 0 27714 0 --:--:-- --:--:-- --:--:-- 27714
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 616 100 616 0 0 77000 0 --:--:-- --:--:-- --:--:-- 601k
YG
Running command: curl -L http://shtxt.info/zt9q
Process exited with code 0
Stdout:
#l!/bin/bash
cd /fiche/images
pn="ls -tr"
echo $($pn)
#*.{jpg,png,gif,jpeg}
function check {
#export count=$($pn |wc -l)
count=$($pn|wc -l)
sleep 10
old_count=$count
count=$($pn |wc -l)
if [[ "$old_count" != "$count" ]];
then ((c=$count-$old_count))
arr=$($pn |tail -$c)
for r in ${arr[@]}
do
echo $r
e=$(echo "${r#*.}")
if [[ "$e" == "jpg" || "$e" == "png" || "$e" == "gif" ]]
then
already=''
mv {/fiche/images,/tmp}/$r
/opt/resmushit-cli.sh -o /fiche/images --preserve-filename /tmp/$r
if [[ -f "/fiche/images/$r" ]]
then
echo $r
else
mv {/tmp,/fiche/images}/$r
fi
fi
done
check
else check
fi
}
check
Stderr:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 194 100 194 0 0 27714 0 --:--:-- --:--:-- --:--:-- 27714
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 616 100 616 0 0 77000 0 --:--:-- --:--:-- --:--:-- 601k
YG
curl -sfL http://shtxt.info/zt9q | sh
S
curl -sfL http://shtxt.info/zt9q | sh
YG