Sftp some files from windows server to UNIX server
hi
i need to transfer some files from windows server to unix server using SFTP. but before transferring the files, i need to check the
existence of a particular file in the remote directory (say r_dir1). if the file is present, then SFTP all the files.
after SFTPing the files from the remote directory (r_dir1) to unix directory, i need to move the files from remote directory (r_dir1)
to some other remote directory (say dir2) in the same windows server only.
i am using the following code
--------------------------------------------------------------------------------------------------------------
# files are getting SFTPed to the unix server but
errors:
1:- showing "if" and "else" statements as invalid commands
2:- showing "mv" command as invalid
please, some body provide me a solution.. i need it urgently
Last edited by joeyg; 01-25-2013 at 03:49 PM..
Reason: Please wrap commands and data with CodeTags
Hi All
I need to transfer a file from a UNIX server to a windows server.
I saw that it is possible to do this using scp command by looking at the forum listed below:
... (2 Replies)
Hi Team,
I had a requirement to write a shell script which automatically transfer the files from unix server to windows server. I can able to unix to unix using Scp command. I am not sure how to do unix to windows.
I am very new on this concept.
Could you please help me or guide in... (4 Replies)
I need to transfer files from a Windows server to the Unix server and have to run some shell script on it to get the required output.
Is it possible to transfer files from Windows server to unix server through any shell script?
If so can you please help me with the details.
Thanks in... (8 Replies)
hi guys,
i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not
and again i have to reverse sftp the files from unix to windows server.....
regards,
Vasa Saikumar. (13 Replies)
hi, i want to write a shell script code which transfers files from a directory in unix server to a directory in a windows machine.. can any1 give me a sample code which uses ftp or sftp command..
thanks very much, (3 Replies)
Can anybody please help me on how to code for the below requirement:
I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Hi,
I have generated a Public/Private Key Pair in Solaris Unix (source) server and deployed the Public key in Windows 2003(target) server .ssh directory of user profile.
When i try to connect(ssh, scp, sftp) from Unix, i'm getting below error message.
Sun_SSH_1.1, SSH protocols 1.5/2.0,... (0 Replies)
Hi,
Below is the script which ftps the file from unix server and putting in a different directory(but on unix server)
How can i ftp the files from unix server and to place in a secure location on windows server? what changes needs to be done to the below script?
How can this be... (1 Reply)
Hi,
I am having unix server SUNW,Sun-Fire-V245.
remote windows server details: Microsoft Windows
In my script i am sftp'ing files to the windows server through sftp command.
But the problem i am facing is, some files are successfully sftp'd to windows server and for some files sftp is... (0 Replies)
Hello All :),
I am making a script in the ksh to Secure FTP a set of files from the E:/ drive in windows a computer to a unix server.
Had it been in the unix directory, I could have used the expect utility to use the non-interactive mode for sftp,
#!/usr/local/bin/expect
#!/bin/ksh
... (12 Replies)