This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

SFTP User Experience

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"