I want to run a python script remotely via ssh. For a single script this would be something like this:
ssh user@machine python test.py
If my python program consists of multiple files, I'm out of luck with this. As Python can execute zip-files, I created one and it runs perfectly on my local system:
ssh user@machine python < test.zip
I got the error message "SyntaxError: Non-UTF-8 code starting with...". Both files in the archive start with "-- coding: utf-8 --".
What do I have to do to make this work?