how to transfer zipped folder from windows desktop to unix server without using tools like winscp
5,402
Since you already have putty, have you tried pscp.exe, part of the same package?
It's not a gui, so you could in theory run as a batch script, or a scheduled push.
Related videos on Youtube
Author by
sherin22
Updated on September 18, 2022Comments
-
sherin22 almost 2 years
I'm a newbie to unix. My requirement is to create an automation script which will transfer a zipped folder from my/remote desktop to an unix server. Tools lik WinSCP shouldnt be used. No manual moving. I use putty to connect to server. I couldnt find any help on this topic. Should i use ftp commands? If yes, how? What is the basic requirement(security n access-wise) for this transfer to happen? Pls help.
-
terdon almost 11 yearsIs this supposed to be run from the Linux server or from Windows? Why do you not want to use
WinSCP
? Do you mean not WinSCP specifically or that you don't want to use any third party applications? What do you mean by "manual moving"? Does the server provide you with FTP access? -
Nullpointer42 almost 11 yearsThe general overview would seem to be to write a script (batch, Powershell, VBS, WSH, whatever) and have it run as a scheduled task. This means using command line tools (winscp can be scripted). You don't mention anything about the source, but detecting the file to upload may be a challenge if it is dynanically named . . . in any case, this may be a better fit for Stack Overflow once you get a skeleton of a script written.
-
tommy_o almost 11 yearsThis sounds like your homework. What did you try and what didn't work?
-
-
Nullpointer42 almost 11 yearswinscp can be run from the command line as well
-
Rich Homolka almost 11 years@ernie does WinSCP still pop a GUI up at that point? the OP specifically mentioned NOT to use WinSCP, I'm assuming for batch script reasons.
-
Nullpointer42 almost 11 yearsNo GUI . . . that page is specifically titled "Scripting and Task Automation" and details how to write scripts to run via winscp.exe from the command line. It would be helpful if the OP clarified their use case.