Questions tagged [psftp]

Use this tag for questions about PSFTP, a PuTTY tool used to transfer files between computers over SSH.

59 questions
0
votes
1 answer

PuTTY PSFTP returning error: unknown command "´╗┐cd"

HI I am running below command from my Windows server. I have got private key added so authentication wise it is fine. But when ever I am running the command getting a weird issue psftp user@host -b FTPfile.txt The file FTPfile.txt has only two…
Hasibur
  • 3
  • 1
  • 4
0
votes
0 answers

PSFTP batch output redirect to local log file

I have checked a bunch of different places for a solution to this and it seems so basic, yet when I try it, the thing doesn't like me. I a writing vbscript which executes psftp.exe, logs into a remote SFTP site, and grabs files referenced in a…
Ed Danileyko
  • 189
  • 2
  • 13
0
votes
2 answers

How to chain psftp commands in one single windows command line

I need to run this chain of commands psftp xx.xx.xx.xx -l xxx -pw yyy cd zzzzzz get file.csv bye in one single command line (psftp comes from here: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) I have seen on superuser…
stallingOne
  • 3,633
  • 3
  • 41
  • 63
0
votes
1 answer

Can PSFTP execute loops?

I've searched a lot on the internet but haven't been able to find any useful info this yet. Does PFTP not allow you to run loops like 'IF' and 'WHILE' at all? If it does, please let me know the syntax, I'm tried of banging my head against it.…
Chipmunk_da
  • 467
  • 2
  • 9
  • 27
0
votes
1 answer

PSFTP (Linux) how to run a while loop

I'm writing a shell script to download a log file from remote linux server onto my local windows pc (after performing several other operations) i.e. once all other operations (eg read, write, put, get etc) have completed on the remote server and the…
Chipmunk_da
  • 467
  • 2
  • 9
  • 27
0
votes
0 answers

Is there any for PSFTP on Windows Task Scheduler?

May I ask if anyone have succeeded in coding a dos batch that uses PSFTP and scheduled it in Windows Task Scheduler? or have encountered problem doing it? I initially coded DOS batch (using FTP) and scheduled its run with Windows Task Scheduler. And…
0
votes
1 answer

Using PSFTP to send file to remote server

I have a bat file I call everynight to transfer some files. I want to put a file from my computer to my remote server. I have installed PSFTP and I don't know how to use it in batch way. I put this : CD /D C:\Users\Vincent\Desktop psftp…
Vincent Decaux
  • 9,857
  • 6
  • 56
  • 84
0
votes
0 answers

Transferring Files using PSFTP and Powershell

I have a working powershell script that invokes psftp.exe and lets me transfer files from my local computer to my server in the cloud successfully. Everything works fine except for an error (does not preempt anything as far as i know) is being…
Joey
  • 391
  • 3
  • 9
  • 28
0
votes
1 answer

Expect echo password in clear text

Automating psftp with bash/expect in cygwin. I have a very minimal script file yftp.exp with code: #!/usr/bin/expect -f spawn psftp unixftpsrvr expect "login as: " send "myID\r" expect "Password:" send "Passw0rd\r" expect "psftp>" the output: $…
Heinz
  • 913
  • 4
  • 12
  • 22
0
votes
1 answer

Is there a way to check for return code using PSFTP?

I am creating a script file using windows BATCH and then calling it using PSFTP (using Putty from command line to call TransferScript.txt). The requirement is to get a file from Unix box to windows and then delete it from Unix but after getting the…
0
votes
1 answer

psftp randomly fails with local: unable to open

psftp put fails about one percent of the time with example being local: unable to open d:\\WorkPath\\F_56MTV56201504201707224380.csv Calling application has needed rights to directory path where file exists and to upload file itself Directory…
-1
votes
1 answer

Putty won't cache the keys to access a server when run script via ControlM

Issue: Whenever a windows batch file (containing command to perform PSFTP) is triggered via Control-M (services started as LocalServiceAccount), the keys are not getting cached and prompts to store the key every time. Explanation: We are performing…
User M
  • 319
  • 1
  • 3
  • 19
-1
votes
1 answer

SFTP not transferring file using batch Script

I´m trying to upload a file to a server using PSFTP, a script is generated automatically using batch scripting, the psftp is called at the batch script. But the file is not being uploaded and no errors are shown. FTP Script: lcd C:\files cd / put…
-2
votes
1 answer

How to script SFTP commands with PSFTP?

I have a script that should list all files in an SFTP server and output that in a file (to be used by another script). The cmd that produces the needed output is: echo ls | psftp -l myusername -pw mycomplexpwd FTPServerHostname >…
amyassin
  • 2,714
  • 3
  • 25
  • 32
1 2 3
4