View Single Post
Old 08-23-2016, 02:55 PM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,633
Hi rleon,

Sorry to appear dense, but I don't understand what you don't understand.

Also, your question is about scp, but then the example code is ssh?

I assume "/path/to/dir/" is a literal string, you would just treat it as such:

crt.Screen.Send("ssh -oStrictHostKeyChecking=no root@" + host + ":/DirA/DirB/DirC/etc" + '\r')


crt.Screen.Send("scp -p -r my file root@" + host + ":/DirA/DirB/DirC/etc" + '\r')

VanDyke Software
Technical Support
(505) 332-5730
Reply With Quote