How i have handled this in the past (UNIX, by the way) is to set up a server on the remote box that will run the remote commands. The client passes a string to the server via Sockets, the server parses that string (ensures it is a safe command to run) and forks a child process to run the command. It then waits on the child process and collects exit info when the child is reaped and passes the data back to the client over the socket.
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In reply to Re: How To Pass To Another Server and Spawn Another Script
by jeffa
in thread How To Pass To Another Server and Spawn Another Script
by o2bwise
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |