You can construct the ssh string in your code (e.g. "scp file server") and then run it using the system() command. Did I understand your question correctly?
Dave
daviddoria
Posting Virtuoso
1,996 posts since Feb 2008
Reputation Points: 437
Solved Threads: 204