SFTP files from windows drive E: to unix

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers SFTP files from windows drive E: to unix
# 1  
Old 11-23-2007
Error SFTP files from windows drive E: to unix

Hello friends,

I was doing this test script which would take a file from my own E: drive to the unix server which i access from a putty.

I tried

sftp <osuser>@<ipaddress>

but it didn't work.

does the windows client have to be a server installation?

i was trying on win xp from solaris 5.10 tty

Another thing,

I need to understand the syntax of a crontab command.
10 2-10 * * * ksh /home/check2run.ksh /home/test.done "home/test_sftp.ksh sftp" 2>> logs/sftptest.log >& 2

I understand the basic syntax of crontab.
plz tell me, what do the

"home/test_sftp.ksh sftp" 2>> logs/sftptest.log

>& 2

parts mean?

will be sincerely grateful for any kind of help that I recieve.
# 2  
Old 11-23-2007
For windows use psftp client instead.
The crontab syntax (this is ksh, which I'm not really good at, correct me if I'm wrong) generally indicates scripts invocation and sending the output in log file.
# 3  
Old 11-24-2007
cron line explanation

You should better try WinSCP, it's a lot easier to use.

10 2-10 * * * ksh /home/check2run.ksh /home/test.done "home/test_sftp.ksh sftp" 2>> logs/sftptest.log >& 2

Your doubts are not cron syntax related, the entire line means:

execute at minute 10 between 2 and 10am everyday the following command:

ksh /home/check2run.ksh /home/test.done "home/test_sftp.ksh sftp" 2>> logs/sftptest.log >& 2

/home/check2run.ksh is executed with the ksh shell and the following arguments
/home/test.done "home/test_sftp.ksh sftp"

Redirect standard error output to /logs/sftptest.log
 2>> logs/sftptest.log

Redirect standard output to the standard error.
 >& 2

# 4  
Old 11-26-2007


Thank you very much my friend.. the explanation is wonderfully clear.


Thanks tou you too my frind.. although I'm still doubtful that psftp can solve my problem.
# 5  
Old 11-26-2007
Why not ? psftp is excellent command line utility for batch ssh transfers, it also can run in non-interactive mode. What exactly is your requirement ?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Needed SFTP script from windows to UNIX server and from UNIX to windows server(reverse SFTP)

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)
Discussion started by: hemanthsaikumar
13 Replies

2. UNIX for Dummies Questions & Answers

Need help to move .csv file from UNIX path to windows shared drive or c:\ drive

Hi Guys, Can any one help me on this. I need help to move .csv/.xls file from unix path to windows shared drive or c:\ drive? Regards, LKR (1 Reply)
Discussion started by: lakshmanraok117
1 Replies

3. IP Networking

How to transfer files from UNIX server to windows machine or vice versa using ftp or sftp commands?

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)
Discussion started by: Little
3 Replies

4. Shell Programming and Scripting

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... (1 Reply)
Discussion started by: vinit raj
1 Replies

5. Shell Programming and Scripting

SFTP from Unix to Windows

Hi all Not sure where I should be posting this so apologies if it's in the wrong section. I'm trying to set up a system where we can copy a file (get) from a Windows server to a Unix server using SFTP in an automated way. I've installed CoreFTP Server on the Windows server and can connect... (2 Replies)
Discussion started by: huskie69
2 Replies

6. Shell Programming and Scripting

Error copying files from Unix (Solaris10) to Windows Server 2003 using scp/sftp

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)
Discussion started by: ajaykumarb
0 Replies

7. Shell Programming and Scripting

Transfering files from windows to unix box through sftp

Hello All, we have scenarion where we need to pull the Files from Windows to Unix Box through SFTP protocol. as per our analysis we did install the cygwin package on the Windows Box to have the openSSH package functionality. 1.Will openSSH help us to achieve the functionality what we are... (3 Replies)
Discussion started by: Amey Joshi
3 Replies

8. UNIX for Dummies Questions & Answers

Mount a windows drive on unix

Hi, I would like to be able to mount windows xp to a unix system, so that I can pull data from windows machine for backup and store it on the unix server. Does anyone know how I can go about mounting the windows drive in unix. Thanks, Eric (4 Replies)
Discussion started by: ejbrever
4 Replies

9. UNIX for Advanced & Expert Users

format unix hard drive on windows xp

Hello, How is it possible to copy the partition of hard drive that have unix on it (it's a scsi hard drive of an Irix (SGI)), under windows xp - what I did till now is to connect the drive to the my pc (windows xp installed) with a scsi adapter and the program partition magic can't recognize the... (2 Replies)
Discussion started by: moyalt
2 Replies

10. UNIX for Advanced & Expert Users

Formatting hard drive from Unix to Windows

Can a hard drive be formatted from unix server to windows 2000 professional? (4 Replies)
Discussion started by: howarddtp
4 Replies
Login or Register to Ask a Question