I need to run a script that sshs to another machine on my local network,(I've RSA key paired them), after sshing in, I need to run a command and get the results of the command in the local script (to parse), and then run another command built from some of the info from the first command.Here is a step by step account of what I want to do:ssh into a machine running FileMaker Server 11get a list of the clientssearch for a certain clientif that client is logged on, get its ID from the listsend a Disconnect ID command to the FileMaker serverexit out.Hope this isn't too garbled.
pseudo interactive ssh script
shell script;ssh