wonderland Posted October 29, 2017 Posted October 29, 2017 I have upload a .py file in cgi-bin, and i have chmod to 755. I have followed the previous post to submit corn job. /usr/bin/python3.6 /home/wonderland/cgi-bin/telegram.py but it doesn't work. and what does 5 minutes execute means. thanks. Quote
Krydos Posted October 30, 2017 Posted October 30, 2017 What do you mean by "doesn't work"? Is there an error message perhaps? Quote
wonderland Posted October 30, 2017 Author Posted October 30, 2017 What do you mean by "doesn't work"? Is there an error message perhaps? are there any status about the python program?since I am not sure this program is executed or not.I used python to make telegram bot.of course, I did testing on my computer before, it's working.thx Quote
wolstech Posted October 30, 2017 Posted October 30, 2017 Did you put it in your cgi-bin folder? If so, what happens when it's viewed in a browser? Be aware also that a cron job can only run twice a day, so if you need it to run more frequently, you must develop and set it up to be usable by a browser so it can be called from another server. Quote
wonderland Posted October 30, 2017 Author Posted October 30, 2017 thanks for replyyou mean,I have to use the web hook optionhttps://core.telegram.org/bots/webhooks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.