Sponsored Content
Full Discussion: ftp to windows
Operating Systems HP-UX ftp to windows Post 70275 by Just Ice on Wednesday 27th of April 2005 08:32:11 AM
Old 04-27-2005
you should be ok with the slight modification below ...
Code:
#!/bin/ksh
#script2 I found this script on UNIX script website
userstr="iusr_vantage_dev"
W2Kservername="130.13.1.165"
pwstr="verint1!"
file1="TRP1run.sql"
file2="TRP2run.sql"
#ftp -in ${W2Kservername} <<-END_FTP #connect to W2K server
ftp -inv ${W2Kservername} <<EOF >> log_ftp
user $userstr $pwstr
ls
put ${file1} #transfer this file from tru64 to W2K
put ${file2}
EOF

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ftp to windows box

I want to be able to connect from my UNIX box to my Windows box via FTP. I am able to succesfully connect to my Windows box via FTP as anonymous, however I can not navigate directories. Issuing the followings commands provides no help: cd c:\ cd c: Both return with "c:: The filename,... (5 Replies)
Discussion started by: here2learn
5 Replies

2. Shell Programming and Scripting

ftp file to Windows

I need to ftp Unix log file to Windows and using VB code to read file. After I ftped my Unix log file to Windows side, I found out that there is no carriage return, so I turned off 'cr' when ftp the file. But my VB code can't see "EOF" signal from this file, should I just add additional line... (2 Replies)
Discussion started by: whatisthis
2 Replies

3. UNIX for Dummies Questions & Answers

FTP from Unix to Windows: Need help!

Hello everyone, I know nothing about Unix, however, I developed a Windows VB app that takes ascii flat files and generates formatted excel reports in single or batch mode. There are about 200 reports that come off the mainframe from a unix box which I have to manually download into my Windows... (3 Replies)
Discussion started by: eguy
3 Replies

4. UNIX for Dummies Questions & Answers

FTP from windows to unix

Hi all, How to FTP an excel format file located in windows to unix using shell script.Any particular commands we have to use? Thanks& Regards, rrs (4 Replies)
Discussion started by: rrs
4 Replies

5. UNIX for Dummies Questions & Answers

FTP from unix to Windows

Hi, I know that there should be a FTP server in Windows or a FTP listener daemon running in windows. Iam a beginner. May I know, what setup need to be done on Windows/unix end so that, a file can be transferred using sftp/scp from unix to windows. Thanks in Advance. (2 Replies)
Discussion started by: deepakwins
2 Replies

6. Shell Programming and Scripting

FTP from windows to unix

I am trying to run this script to ftp something from windows and am getting the following error when trying to view the directories.. Connected to 192.168.1.22. 220-Microsoft FTP Service 220 LOGS ftp> ls -lrt 530 Please login with USER and PASS. 530 Please login with USER and PASS. This is... (1 Reply)
Discussion started by: dowell
1 Replies

7. UNIX for Dummies Questions & Answers

Windows to UNIX FTP

Good Morning, I am currently having a setup of running a batch file in windows to ftp certain files to unix and after that one i login to a unix box to manually run a script to clean up those files and combine them into one and get go back to windows to run another batch of file to get the... (4 Replies)
Discussion started by: ryan_estiya
4 Replies

8. Shell Programming and Scripting

ftp from unix to windows

How to do ftp from unix to windows i have some files in a dir in unix box and i want to put those files in windows through FTP. How to do this ? (9 Replies)
Discussion started by: ali560045
9 Replies

9. AIX

Do I need to configure my local windows to FTP files from local windows to a UNIX AIX server?

Hi Friends, I have this script for ftping files from AIX server to local windows xp. #!/bin/sh HOST='localsystem.net' USER='myid_onlocal' PASSWD='mypwd_onlocal' FILE='file.txt' ##This is a file on server(AIX) ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies

10. Solaris

FTP from Windows to Solaris

Dear All, As I am new to Solaris ..I need some help How is FTP access given from Windows machine to solaris machine. The scenario is that : I have a Xp host system and Solaris as my guest OS in my vmware. I need to tranfer some files from Windows to Solaris.? I am using... (7 Replies)
Discussion started by: bharat_
7 Replies
ftp(4)								   File Formats 							    ftp(4)

NAME
ftp - FTP client configuration file SYNOPSIS
/etc/default/ftp DESCRIPTION
Use the ftp file to configure the behavior of the FTP client. Lines that begin with a hash symbol ("# ") are treated as comment lines and are ignored. Behavior Directives The ftp file supports the following behavior directives: FTP_LS_SENDS_NLST=yes | no The ls command of the ftp client sends an NLST to the FTP Server by default. Several non-Solaris clients send LIST instead. In order to make the Solaris ftp client send LIST when the ls command is issued, set FTP_LS_SENDS_NLST to no. The value of FTP_LS_SENDS_NLST is yes by default. If the user sets a value for FTP_LS_SENDS_NLST in the user's environment, this value will override any FTP_LS_SENDS_NLST directive that is specified in /etc/default/ftp. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWbipr | +-----------------------------+-----------------------------+ SEE ALSO
ftp(1), attributes(5) SunOS 5.10 22 Oct 2002 ftp(4)
All times are GMT -4. The time now is 11:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy