From Moving Electrons comes a nice tip about executing remote commands over SSH from Pythonista. It's simple in design:
- Connects to the server.
- Executes the command passed as an argument to the script in Pythonista in the remote server (more info in the following section).
- Once the command is run, it disconnects from the server.
Of course, this requires a remotely accessible Mac. I have some similar things I do with my hosts at Webfaction. You get the idea though. Once you have an SSH connection you can pretty much do anything and Pythonista is a good way to create that SSH connection.