S
Saqib Ali
Hi.
I'm writing C++ code that is running on a Solaris system.
From within my C++ program, I need to copy files from one machine to
another using SFTP or SCP. I would like to learn how to do so
programatically.
There seems to be no standard C++ library (such as iostream, strings,
etc) that would do this. I don't know why. Can anyone explain this to
me? Without such a library, it seems my only option would be to run an
operating system call. However if I did so, a user would need to type
in a password during execution. That seems sub-optimal.
I wish there was a function that looked like this:
scp(sourceFile, targetMachine, targetUser, targetPassword, targetFile)
What do other people do in this situation?
Thanks much.
- Saqib
I'm writing C++ code that is running on a Solaris system.
From within my C++ program, I need to copy files from one machine to
another using SFTP or SCP. I would like to learn how to do so
programatically.
There seems to be no standard C++ library (such as iostream, strings,
etc) that would do this. I don't know why. Can anyone explain this to
me? Without such a library, it seems my only option would be to run an
operating system call. However if I did so, a user would need to type
in a password during execution. That seems sub-optimal.
I wish there was a function that looked like this:
scp(sourceFile, targetMachine, targetUser, targetPassword, targetFile)
What do other people do in this situation?
Thanks much.
- Saqib