FTP Warning message ?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting FTP Warning message ?
# 1  
Old 02-15-2006
FTP Warning message ?

Hi,

I wrote a ftp script to get some files from one server. So files transer is working properly. But I observed following Warning message for every transaction,
Can somebod give me explanation to this Warning message? I am confused?

109516 bytes received in 0.066 seconds (1659333 bytes/s)
local: rec20060214_1010003_0142.unl remote: rec20060214_1010003_0142.unl
200 PORT command successful.
150 Opening ASCII mode data connection for rec20060214_1010003_0142.unl(70435 by
tes).
WARNING! 520 bare linefeeds received in ASCII mode
File may not have transferred correctly.
226 Transfer complete.
70435 bytes received in 0.044 seconds (1600795 bytes/s)
221
....
....
....

My script is as follows.

#!/bin/tcsh -f

if [ $# -ne 1 ]; then
echo "usage : RegFileFTP.sh followed by the date (YYYYMMDD)"
echo "example : RegFileFTP.sh 20051225 "
exit
fi


dir_name=$1

mkdir $dir_name

cd $dir_name
ftp -v -n "10.76.170.17" << cmd
user "rbi" "rbi"
cd recordreceive
prompt
mget rec$dir_name*.unl
bye

What is the reason for this Warning message? Smilie
# 2  
Old 02-16-2006
Perhaps ftp suspects this is actually a binary file? If this is the case you should set the file transfer mode appropriately.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP Error Message

Hello All I have below code snippet /usr/bin/ftp -niv $ftphost 1>&2 >> $upload_log <<EndFtp quote user $ftp_user quote pass $ftp_pass cd $ftp_dir put $upload_file When i pass a wrong ftphost as a paramater, output is "ftp: abc.net: Name or service not known". (abc.net is the... (3 Replies)
Discussion started by: forums123456
3 Replies

2. HP-UX

Warning message in HP-UNIX

Hi, After i exit from crontab file using Esc+wq, i get a message like " warning: commands will be executed using /usr/bin/sh " Can somebody tell me what it means ? Thank you (9 Replies)
Discussion started by: Maddy123
9 Replies

3. Linux

SSH Warning Welcome message?

Hi all, I just configured automatic login between two servers following this article: SSH login without password When I execute the following command: ssh REMOTE "/script/output.sh"I get: Warning: This system is restricted to authorized users for business purposes. Unauthorized... (2 Replies)
Discussion started by: Evan
2 Replies

4. Shell Programming and Scripting

How do display a warning message?

Hello, I am teaching myself shell scripting and I was wondering if there was a way to rename a file and display a warning or prompt message? And if you had a file like /home/me/blah/ for example, what are the ways to use the CD to get to /me? Would it be ../home/me? Are there other ways to... (4 Replies)
Discussion started by: kris2010
4 Replies

5. UNIX for Dummies Questions & Answers

Help to eliminate a warning message

Hi all, I'm trying to run this command in a script: utenti_conn=`ssh $MYUSER@$MYTRAP01IP sudo cat /opt/accenture/trapwriter/data/TMDVOD\-1\-\`date \+\%Y\%m\%d\`\* /opt/accenture/trapwriter/data/TMDBTV\-1\-\`date \+\%Y\%m\%d\`\*|awk -F'|' '{print $7}'|sort |uniq|wc -l` and in output I... (1 Reply)
Discussion started by: idro
1 Replies

6. UNIX for Dummies Questions & Answers

warning message

I have received a warning message, does anyone know what this means? warning: userdel processing continues resource: /var/opt1k/sco/unix/5.0.6 Ga/etx/group-t could not be allocated due to : cannot securly create new file. (0 Replies)
Discussion started by: qphillips
0 Replies

7. UNIX for Dummies Questions & Answers

warning message in SAM

On running ‘Disk Devices’ tools under ‘Disks and File Systems’ option of System Administration Manager (SAM) in our UNIX Server (HP 9000 running HPUX B.11.11 U) a warning message appeared. The message that appeared reads as follows “The Logical Volume Manager shows this device file,... (3 Replies)
Discussion started by: mhbd
3 Replies

8. UNIX for Dummies Questions & Answers

Ftp welcome message

Hi there Could anyone tell me if it's possible, and if it is, how to setup a welcome message on my ftp server? i've readed the man pages for ftp,ftpd,ftpaccess and came to no conclusion. this on HP-UX. thanks for any help (2 Replies)
Discussion started by: vascobrito
2 Replies

9. Filesystems, Disks and Memory

Warning Message.

I have had trouble with my PC, due to construction failure I from my dealer or a power-blast over the net I had a broken MotherBoard, CPU and Memory, So I had to get new ones. Now I'm having a 2000Mhz CPU an ASUS P4S... {I think it's P4S500} and new DDR- memory My PC gives a warning-message... (3 Replies)
Discussion started by: Silver
3 Replies

10. UNIX Desktop Questions & Answers

Warning message ioctl

Has anyone over seen this message on bootup? When booting up, I get: " Warning: lckdioctl: unknown ioctl cmd:5 ". It scrolls down the screen 5 - 10 times, the I finally get a login. It is also posting to my syslog file. The system came up, but I am still getting the message... (1 Reply)
Discussion started by: Diana
1 Replies
Login or Register to Ask a Question