hjoliver/cylc — pull request #77 by matthewrmshin (2012-06-29 10:58:20+00:00)
Title: Run host fix

This should fix #76.
* Moved the common main function of `cylc run` and `cylc restart` to a new library module.
* Host name comparison is now done by IP address.
* --host=HOST, --owner=OWNER, -o OWNER are taken out of the argument list when invoked via `ssh`.
* Add `-oBatchMode=yes` to `ssh` to prevent hang up when run from a non batch environment.
* `ssh` runs `/usr/bin/env bash` in case the default shell run by `ssh` is incompatible.