Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 21097

SFTP User Experience

$
0
0

I currently have a script to launch psftp to put a file.  I am using the powershell script monitor.  What I need is assistance in scripting the return of a successful put or get or a failure.

 

$file = "file I am putting"
$user = "username"
$pass = "password"
$hst = "host.name"
$path="location of psftp"
$cmd = @("put $file","bye")

 

script command $cmd | & $path -pw $pass "$user@$hst"


Viewing all articles
Browse latest Browse all 21097

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>