HelioHost Posted July 22, 2017 Posted July 22, 2017 Hello, I have a cron for execute a python file.First of all, is it correct the command? The instalik.py is in cgi-binfolder "python /home/instalik/public_html/cgi-bin/instalik.py" Then the cron is executed I have this error: for tag in caption.split() ^SyntaxError: invalid syntax I think that is the version of python. In my computer the script works correctly with Python 3.6.2. Can you update the version of python? Server: JohnnyUsername: instalik Thank you
Krydos Posted July 22, 2017 Posted July 22, 2017 The command python is version 2.6.6. The command /usr/bin/python3.6 is version 3.6.1.
instalik Posted July 22, 2017 Posted July 22, 2017 WOW very fast response! I think that with 3.6.1 version it works. Changed! Thank you
Recommended Posts