You may be able to do that. You'll have problems seeing if the commands have finished and with what result thought. Continuously reading XML log may be used for that.
I build a windows application using winscp to connect to remote servers.
I encountered a problem that for each of the GUI components (representing actions on the remote machine) I have to open new ssh session as described in the documentation.
My question is - Can i open a session with the remote machine only once and use it globaly for all the events?
It's a major performance issue. imagine that for every action i have to launch a new winscp process and open a new ssh session...
Thanks.