_ID_ & _PHONE_ are replaced with GUILDE member attributes
This commit is contained in:
parent
1e7f18d125
commit
38cc24db7e
|
@ -24,7 +24,7 @@ for tosend in /home/${YOU}/.zen/SMS/PHONE/*/*.tosend.sh; do
|
||||||
phone=$(cat /tmp/${phonehash}.phone)
|
phone=$(cat /tmp/${phonehash}.phone)
|
||||||
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" | sed sed "s/_ID_/${xzuid}/g" > /tmp/tosend.sh && chmod +x /tmp/tosend.sh
|
||||||
bash -x /tmp/tosend.sh && mv ${tosend} ${tosend}.txt && rm /tmp/tosend.sh || mv ${tosend} ${tosend}.error.txt
|
bash -x /tmp/tosend.sh && mv ${tosend} ${tosend}.txt && rm /tmp/tosend.sh || mv ${tosend} ${tosend}.error.txt
|
||||||
sleep 3
|
sleep 3
|
||||||
done
|
done
|
||||||
|
@ -38,7 +38,7 @@ for guidesend in /home/${YOU}/.zen/SMS/GUILDES/*/OUTPUT/*.tosend.sh; do
|
||||||
[[ ! -L $phonelink ]] && continue
|
[[ ! -L $phonelink ]] && continue
|
||||||
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" | sed sed "s/_ID_/${xzuid}/g" > /tmp/guidesend.sh && chmod +x /tmp/guidesend.sh
|
||||||
bash -x /tmp/guidesend.sh
|
bash -x /tmp/guidesend.sh
|
||||||
sleep 3
|
sleep 3
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue