Open hekutorukun opened 6 years ago
I would like to send many commands at once, right now I have a text file with the following content
/home/hector/tg/bin/telegram-cli -W -e "send_photo xxxxxxxx '150 - Alejandro Crespo.jpg'" /home/hector/tg/bin/telegram-cli -W -e "send_photo xxxxxxxx 'do - Agustin Garcia Calvo.jpg'" /home/hector/tg/bin/telegram-cli -W -e "send_photo xxxxxxxx '98% sexo - Alberto Olmos.jpg'" /home/hector/tg/bin/telegram-cli -W -e "send_photo xxxxxxxx 'ellas - Alan Dean Foster.jpg'"
but if I execute it, after a while it does not leave the session.
I have to wait 5 seconds between each execution
while read linea ; do echo $linea > /tmp/a.sh ; chmod 777 /tmp/a.sh ; bash /tmp/a.sh ; rm -f /tmp/a.sh ; sleep 5 done < aux
Can it be done without having to wait?
What if I want to execute 1000 commands
Thank you very much
I would like to send many commands at once, right now I have a text file with the following content
/home/hector/tg/bin/telegram-cli -W -e "send_photo xxxxxxxx '150 - Alejandro Crespo.jpg'" /home/hector/tg/bin/telegram-cli -W -e "send_photo xxxxxxxx 'do - Agustin Garcia Calvo.jpg'" /home/hector/tg/bin/telegram-cli -W -e "send_photo xxxxxxxx '98% sexo - Alberto Olmos.jpg'" /home/hector/tg/bin/telegram-cli -W -e "send_photo xxxxxxxx 'ellas - Alan Dean Foster.jpg'"
but if I execute it, after a while it does not leave the session.
I have to wait 5 seconds between each execution
while read linea ; do echo $linea > /tmp/a.sh ; chmod 777 /tmp/a.sh ; bash /tmp/a.sh ; rm -f /tmp/a.sh ; sleep 5 done < aux
Can it be done without having to wait?
What if I want to execute 1000 commands
Thank you very much