How to download file from unix to desktop






















You can run man xdg-user-dir for more info. How these commands work depends on where you are in the filesystem. To learn more, you can check man mv and man cp A nice option for learning - you can get mv and cp to tell you what they are doing by making them verbose: adding -v. If locale is not English, the name may be not Desktop.

Good point. Any way to generalize to any locale? Show 2 more comments. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.

The Overflow Blog. Podcast Who is building clouds for the independent developer? The local ssh just reads the file through redirection, and the quoted cat command gets run on the remote system.

Whoops — cat is a UNIX command. You might need to change this to "copy" for a Windows box. We use it in shellscript since years. But, the thing is I need the shell script after my session completes to copy output file in to windows specified path. I think the last six posters have ignored the stated problem.

So, just going into the Windows box manually when you think the file is ready to fetch, and initiating any kind of operation manually, is not a solution. So Samba and other NFS-type solutions might not be feasible for security reasons also. Thanks for all of you. I need to automate it by writing a script and calling it every day after session completes successfully.

Anyone can give the exact shell script to do this functionality? You need to have WinSCP installed on your windows client and use windows schedule and the command described in the link above to automate the process.

Add IP address in UNC path: although that is not state-of-the-art, it works correctly on the "other" side, Windows would rise a security risk by accessing a UNC path containing an IP address of course. Add the urgency from swarna in a following mail: sorry, but I understand this forum as a medium to get tips and hints, but not to expect a ready solution without any costs.

If you can get the Windows team to install a ssh server on the Windows server, then I would suggest this is the way to go. As FTP is not a secure form of transport, you can ask the Windows team to make a virtual directory to the required "output" directory.

The FTP server and the "output" directory do not even need to be on the same host. An additional advantage of a virtual directory is that it does not show in the root directory listing, but can still be accessed. You should probably ask the Windows team to set the directory view as UNIX-style; but if they decide to leave it as DOS-style, then it can be changed on the fly using the "quote site dirstyle" command.

To set this up in AIX is less than 5 minutes work. Thanks for the great comments. And the issue is I have to re-direct the file into the windows machine from UNIX machine and update the latest file which should be placed in the directory. I mean, the previous day the file should be replaced by nextday file everyday. But, the file name should not be changed.

Even I am having the same requirement, to copy files from Windows to Unix box. I did read the above links, but they all require manually intervention which we want to avoid. We want something which we can schedule and it should get kick based on completion of dependency and copy the files. I can say this about Samba, maybe winscp is the same: After configuring and starting the server, then there is no more manual intervention.

Proxy Server. Upload file from desktop to UNIX server via putty. I have a requirement of following - 1. Transfer excel spreadsheet from desktop to unix server 2. Open the spreadsheet and read the sql row by row at a time 3. Run each sql on database using unix and then send output back to spreadsheet that was uploaded earlier and then transfer file back to Transfer of zipped folder from windows desktop to UNIX server. Hi all, I'm a newbie to unix.

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 Get file on our windows desktop from a ubuntu server. Hello, How can I please have a program automatically upload some files from a ubuntu server to my machine desktop that is running windows XP? I would like to be able to do that from the windows machine itself.

This will give you the folder name, like this:. Replace the sections in bold with the information you gathered in step 1. For example, the command used for this example is:. Open up a command line in Windows. Windows 10 already has SCP installed by default.

The color contrasts with the yellow, and syntax highlighting is a nice change from the drab command line. As you can see, you first need to confirm the connection using the RSA fingerprint of the remote server.



0コメント

  • 1000 / 1000