Ftp issue please help.


 
Thread Tools Search this Thread
Operating Systems Solaris Ftp issue please help.
# 1  
Old 03-24-2009
Ftp issue please help.

Hi All.

I need to FTP a file say abc.dat to client server say xyz.ibm.com location /etc/passwd/ibm with user name and password.

I want to make sure my script when FTP the file abc.dat of 1000kb is correctly got transfered with the same contant every time to Clients server how do I confirm the same please reply.

Rgds
Ann.
# 2  
Old 03-24-2009
Use sftp OR scp.. Its 100% guaranteed secure and integrity is full proof than ftp. and you need not send across the id and password over a TCP/IP network.
# 3  
Old 03-24-2009
I could do!

how will i confirm whether the file I have transfered is got FPT'd.

If I transfer 100kb file to server(Its believed that some server will have different file size after transfer)...!

Let me clear its all a automated script i dont need to check again and again and confirm this is the file i have transfered!
# 4  
Old 03-24-2009
#!/usr/bin/ksh
ftp -v -n "172.10.10.111" << cmd #( here you can give your server ip of hostname)
user "username" "passwd" #
cd /export/home/amit
lcd /export/home/ibm/
bin
hash
put filename ( you can put the file neme as avaribale and pass it to script)
quit
cmd
# 5  
Old 03-24-2009
Not working Smilie

#!/bin/ksh
ftp -n -v 199.11.22.33
user: abc
password: xyz
cd /home/export/ibm
put abc.dat
bye

Smilie !!!
# 6  
Old 03-24-2009
what part is not working? please be as descriptive as possible.
# 7  
Old 03-24-2009
The crdentials part is not working:

Username password instead auto login it waits for the username to type explicitly after running the script.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Ftp issue

In the automated process. due to space in between banking and critical, the below command is not working in the automated process. Can anyone help it out. If I am putting cd banking critical-Bas" and file get ftp'ed. but not through the below line ftp -m "ftp.com" -d "banking critical-Bas" (4 Replies)
Discussion started by: ramkumar15
4 Replies

2. IP Networking

Issue with FTP?

HI Guys, Issue:: While doing bye command on ftp, it just hings as below untill you try Ctrl+C 891 bytes received in 0.0017 seconds (526.16 Kbytes/s) ftp> bye 221-You have transferred 0 bytes in 0 files. I too have tried with other commands like, close, disconnect etc but no luck. ... (1 Reply)
Discussion started by: Atp3530
1 Replies

3. Red Hat

FTP issue

Hi everybody, I would like to findout a directory or a file which is located at ftp server by connecting with ftp <ip> by using any other linux utility. I tried with find and locate commands in this manner but didnt work. Please help me. Regards, Mastan (1 Reply)
Discussion started by: mastansaheb
1 Replies

4. UNIX for Advanced & Expert Users

Ftp issue

Hi we are facing an issue on our server our job connects to a target server and pulls the file from a location .But it is taking too much time to do this . Hwne i manully do the ftp it finished in few seconds .but when the jobs is pulling it is taking 30 to 40 min . please see the log... (1 Reply)
Discussion started by: ptappeta
1 Replies

5. Red Hat

FTP issue

Hi, I have installed RHEL 5 on Vmware. I have configured a simple FTP. I am able to transfer and receive files from the vmware-RHEL to my desktop on which vmware is installed and vice-versa. But when i try from other machine in the network it fails. (2 Replies)
Discussion started by: chetansingh23
2 Replies

6. Shell Programming and Scripting

ftp issue

Hi again, I'm using the following shell script via cron to upload the daily log files from my shell to the web server so we can view them online. But somehow logs get corrupted and i don't know what's issue. I would really appreciate for your help please. Shell Script: ftp.sh #!/bin/sh... (3 Replies)
Discussion started by: user`
3 Replies

7. IP Networking

FTP issue

Hello all, FTP times out when I transfer large files. Small files get transffered fine. small files -------- -bash-3.1$ ftp -i cldevoradb01 Connected to cldevoradb01.enterprisenet.org. 220 (vsFTPd 2.0.5) 530 Please login with USER and PASS. 530 Please login with USER and PASS.... (4 Replies)
Discussion started by: luft
4 Replies

8. Shell Programming and Scripting

ftp issue

I was changing a bit of the existing script and didnt comment the ftp part in it. So, the ftp step executed, but there was no input file. I got the message like this netout: write returned 0? 250 Transfer completed successfully. What does this mean?. Has the ftp replaced the existing... (1 Reply)
Discussion started by: dnat
1 Replies

9. Shell Programming and Scripting

FTP issue

I have tried to ftp from unix to local window machine. I have taken this piece of code from forum and tried ... #!/bin/ksh #Usage example: ftpscript sanjit.txt C:/citi/readme.txt localFile=$1 remoteFile=$2 ftplog=loglog.log echo "$(date "+%H:%M:%S") - Attempt to FTP $1 to $2" > $ftplog #... (1 Reply)
Discussion started by: u263066
1 Replies

10. UNIX for Dummies Questions & Answers

FTP Issue, Help please

folks; when i manually run this script below, it works fine, but when i run it using a scheduler like "autosys" it doesn't work & i get this error: ftp: connect: A remote host refused an attempted connect operation The script: ftp -n XXX.XXX.XXX.XXX <<- eof User Pswd cd xxx/xxxx/xxx... (0 Replies)
Discussion started by: moe2266
0 Replies
Login or Register to Ask a Question