Originally Posted by fordeck
This may or may not be what you are trying to accomplish, here is what I was thinking from your original post, was that you login to the remote machine via ssh and then start a screen session. You could then start your test program. This way you could detach from it and log out of your ssh session. You then have the option to ssh from any location and attach to the detached session, which is still running your test program. You can then check on your program and kill it if necessary.
Again after looking at your previous posts, I think I probably misunderstood what you were trying to accomplish and perhaps screen is not what you are looking for.
I suspect you're right unfortunately. The process needs to be entirely automated from the local machine : I may need to run a large number of such tests on different machines entirely programmatically. It nearly works, I just can't find a good way to kill them if they hang right now.
Thanks for your time anyway.