[svlug] Problem in FTP
Anagha Tongaonkar
yogiana_t at yahoo.com
Tue Aug 2 18:11:36 PDT 2005
Hello Folks,
I am using a bash script that uses ftp command to transfer
file "report.txt" from machine A to machine B.
However, after executing this script, at the receiving end
the file size seems to have increased.
Source
report.txt on machine A:
-rw-rw-r-- 1 user group 1166 Aug 2 17:35
report.txt
After FTP using the bash script:
Destination
report.txt on machine B:
-rw-r--r-- 1 uesr group 1232 Aug 03 00:36
report.txt
As you can see the destination file size (1232) is greater
than the source file size (1166).
Any idea, why is the file size different on the source and
destination?
I will appreciate your helpful answers.
Thanks,
Anagha
PS: The bash script for the FTP is as follows:
#!/bin/bash
cd /u1/file-dir
echo "pwd: $(pwd)"
ls -l
#STEP 3 FTP into B and copy the file there
Filename1="report.txt"
Server="A"
Directory="/u1/anagha/ftp-test"
Username="anagha"
Password="abc"
ftp -v -n $Server <<End-Of-Session
user $Username $Password
pwd
cd $Directory
pwd
put $Filename1
ls -l
bye
End-Of-Session
echo "*****After the FTP file transfer"
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
More information about the svlug
mailing list