View Single Post
  #2  
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:

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

or

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

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote