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.
Krydos Posted October 30, 2017 Posted October 30, 2017 What do you mean by "doesn't work"? Is there an error message perhaps?
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
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.
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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now