FTP (File Transfer)


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting FTP (File Transfer)
# 1  
Old 03-31-2009
MySQL FTP (File Transfer)

I am going to transfer file from UNIX directory to remote windows location and i wrote the script but i am getting the error as 'FTP: not found' or i am getting this error 'The file path is not found'.

Please help me to resolve this problem as early as possible.(urgent).

my script is,

Code:
LOCAL_PATH='/apps/dw.....'
HOST='AGCY'
USER='..'
PWD='...'
PATH='\TestAGCY'
cd $LOCAL_PATH
ftp -n $HOST << END_SCRIPT
quote USER $USER
quote PASS $PWD
cd $PATH
prompt off
mput Extract_File.out
exit
END_SCRIPT


Last edited by tayyabq8; 03-31-2009 at 08:29 AM.. Reason: Added code tags
# 2  
Old 03-31-2009
This may help you...

Please also do search in forum...you may get lot more results..

Thanks
SHa
# 3  
Old 03-31-2009
MySQL FTP (File Transfet without using User name & Password)

Is there any method without passing user name & password directly in FTP command.
# 4  
Old 03-31-2009
Dear Praka,

FTP without user name / password can be done by ssh configuration. First you need to make ssh connection between two servers, then you able to do SFTP without password.
Command : sftp username@server_ip

For simple file transfer without user name / password use scp.

Regards,
Prakhar
# 5  
Old 03-31-2009
MySQL FTP (File Transfer)

Is there any other way to capture the server name,user name and password in some other file and referring the file in UNIX Script.Smilie
# 6  
Old 03-31-2009
Use this script & test:

>cat ftp_main
10.10.10.10|uname|passwd

>cat do_ftp.sh
HOST=`awk -F"|" 'printf{$3}' ftp_main`
USER=`awk -F"|" 'printf{$2}' ftp_main`
PWD=`awk -F"|" 'printf{$1}' ftp_main`
LOCAL_PATH='...'
PATH='...'
cd $LOCAL_PATH
ftp -n $HOST << END_SCRIPT
user $USER $PWD
cd $PATH
prompt off
mput Extract_File.out
bye
END_SCRIPT

> ./do_ftp.sh
# 7  
Old 03-31-2009
FTP has a facility to read login and password from a file called ".netrc".
man .netrc .

Permissions on such a file should be 600 and owned by the user or (preferably) root. Most FTP implementations will ignore a .netrc file which has the wrong permissions.

However, use Secure FTP if you can.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

FTP huge file transfer

Hi, I need to transfer 2000 files from one host to another.. I modified /etc/security/limits to -1 and ulimit -f, ulimit -s, ulimit -a.. Even then only 700 files are transferred. Could You please help me to sort out this issue.. I think some configuration related to memory is... (3 Replies)
Discussion started by: Priya Amaresh
3 Replies

2. Windows & DOS: Issues & Discussions

FTP: Can not listing and can not transfer file

Hi All, My PC with Windows XP SP2 has some problem with ftp service. FTP Server is : Windows Server 2003 Standard R2 The condition is I can log in and also can change ftp server directory, But I can not listing the file and can not get or put any file. It will hang and nothing happen until... (4 Replies)
Discussion started by: wilsonSurya
4 Replies

3. UNIX for Dummies Questions & Answers

How do i transfer file using ftp protocol in Linux.

Hi , I want to transfer file using ftp protocol . I m using following linux distribution. LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch Distributor ID: OracleVMserver Description: Oracle VM server release 2.2.0 Release: 2.2.0 Codename: ... (5 Replies)
Discussion started by: pinga123
5 Replies

4. Shell Programming and Scripting

FTP File transfer - Exceptions handling

Hello All, How we can capture the FTP file transfer status. I would like do the exceptions handling for the FTP file transfer My code is something like this... ftp -nvi $FTP_SRVR |& print -p user $UID $PWD print -p cd mydir print -p put $FILE_NAME print -p close print -p bye ... (3 Replies)
Discussion started by: amazon
3 Replies

5. Shell Programming and Scripting

file transfer from windows to unix using ftp

Hi all, I have a file in windows, example a.txt **** aaa bbb ccc <empty line> when i transfer this file to unix using ftp, and viewed the file # vi a.txt aaa bbb ccc # I dont get the empty line which i specified in that file in windows. Please help me, which in unix... (5 Replies)
Discussion started by: Nandagopal
5 Replies

6. Shell Programming and Scripting

error while passive ftp file transfer

hi i am doing a passive ftp file transfer . during that i got the following error. "ftp> put FTPS_MAILBOX local: FTPS_MAILBOX remote: FTPS_MAILBOX 421 Service not available, remote server has closed connection Passive mode refused. Turning off passive mode. No control connection for... (1 Reply)
Discussion started by: Satyak
1 Replies

7. Shell Programming and Scripting

File Transfer through FTP

Hi Guys, I wanted to transfer files from FTP machine to Linux Machine. In this, I need to create a batch file that will connect to the Linux Machine and Transfer the files specified as the parameter to the files. Ex : transferfiles Product Time Geography Here transferfiles shld contain... (4 Replies)
Discussion started by: Swapna173
4 Replies

8. Shell Programming and Scripting

file transfer using Ftp

Hi All, I am very new to shell scripting,I have some doubts how we can do a file transfer using ftp I wanted to transfer files using non_secure ftp and secure ftp(sftp) mode, for secure ftp i am using following code verbose="verbose" ftp="/usr/bin/ftp" user="ABC" pass="123"... (1 Reply)
Discussion started by: sudhi
1 Replies

9. HP-UX

Error FTP transfer file

Hi all Pls help me this problem in FTP transfer file. I found in var/adm/syslog/syslog.log have some error when transfer file via FTP as below : Jan 10 12:35:32 ABC ftpd: FTP LOGIN FROM ABCA (Sucessfully Open session ) Jan 10 12:40:48 ABC ftpd: FTP LOGIN FROM ABCA (Sucessfully Open session... (3 Replies)
Discussion started by: cuongpc
3 Replies

10. Shell Programming and Scripting

FTP fail during file transfer

Please help me out. it is very urgent. when transfering the files from one server to other server if it is failed how to trace the status. i am using two commands: cd $SOURCE_FILE_PATH ftp -niv $SRVR_NAME >> $LOG_PATH/$LOG_FILE << END_FTP user $USER_ID $PASSWORD bin cd $REMOTE_FILE_PATH ! ... (0 Replies)
Discussion started by: ramana
0 Replies
Login or Register to Ask a Question