change extension for easier opening
This commit is contained in:
parent
65f541b13b
commit
6ae6daccd6
|
@ -25,7 +25,7 @@ for tosend in /home/${YOU}/.zen/SMS/PHONE/*/*.tosend.sh; do
|
||||||
echo "${phone}"
|
echo "${phone}"
|
||||||
|
|
||||||
cat "${tosend}" | sed "s/_PHONE_/${phone}/g" > /tmp/tosend.sh && chmod +x /tmp/tosend.sh
|
cat "${tosend}" | sed "s/_PHONE_/${phone}/g" > /tmp/tosend.sh && chmod +x /tmp/tosend.sh
|
||||||
bash -x /tmp/tosend.sh && mv ${tosend} ${tosend}.done && rm /tmp/tosend.sh || mv ${tosend} ${tosend}.error
|
bash -x /tmp/tosend.sh && mv ${tosend} ${tosend}.txt && rm /tmp/tosend.sh || mv ${tosend} ${tosend}.error.txt
|
||||||
sleep 3
|
sleep 3
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ for guidesend in /home/${YOU}/.zen/SMS/GUILDES/*/OUTPUT/*.tosend.sh; do
|
||||||
phone=$(echo "$phonelink" | cut -d '/' -f 9)
|
phone=$(echo "$phonelink" | cut -d '/' -f 9)
|
||||||
|
|
||||||
cat "${guidesend}" | sed "s/_PHONE_/${phone}/g" > /tmp/guidesend.sh && chmod +x /tmp/guidesend.sh
|
cat "${guidesend}" | sed "s/_PHONE_/${phone}/g" > /tmp/guidesend.sh && chmod +x /tmp/guidesend.sh
|
||||||
bash -x /tmp/guidesend.sh && mv ${guidesend} ${guidesend}.done && rm /tmp/guidesend.sh || mv ${guidesend} ${guidesend}.error
|
bash -x /tmp/guidesend.sh && mv ${guidesend} ${guidesend}.txt && rm /tmp/guidesend.sh || mv ${guidesend} ${guidesend}.error.txt
|
||||||
sleep 3
|
sleep 3
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue