ftp problem


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers ftp problem
# 1  
Old 10-31-2005
ftp problem

Hi,

I am trying to ftp files from one server to another server.
On one server, I used ls -ltr command, gave me the following result:
-rw-rw-r-- 1 ediprod zedi 28844 Oct 31 07:58 MFi1000181967
-rw-rw-r-- 1 ediprod zedi 24927 Oct 31 07:58 MFi1000303320
-rw-rw-r-- 1 ediprod zedi 30374 Oct 31 07:58 MFi1000311563
-rw-rw-r-- 1 ediprod zedi 56855 Oct 31 07:58 MFi1000320206
-rw-rw-r-- 1 ediprod zedi 24051 Oct 31 07:58 MFi1000330557

and, I started the ftp session
cisesedi03:/u02/app/gentran/ediprod/zz093/inv_dsa_data>ftp <somehost>
Connected to <somehost>.
220 <somehost> FTP server (SunOS 5.8) ready.
Name (<somehost>:ediprod): ediprod
331 Password required for ediprod.
Password:
230 User ediprod logged in.
ftp> cd /u02/app/gentran/ediprod/zz093
250 CWD command successful.
ftp> prompt
Interactive mode off.
ftp> mput *
200 PORT command successful.
150 ASCII data connection for MFi1000181967 (160.95.81.142,46628).
226 Transfer complete.
local: MFi1000181967 remote: MFi1000181967
30431 bytes sent in 0.002 seconds (14993.83 Kbytes/s)
200 PORT command successful.
150 ASCII data connection for MFi1000303320 (160.95.81.142,46629).
226 Transfer complete.
local: MFi1000303320 remote: MFi1000303320
26362 bytes sent in 0.0016 seconds (15640.43 Kbytes/s)
200 PORT command successful.
150 ASCII data connection for MFi1000311563 (160.95.81.142,46630).
226 Transfer complete.
local: MFi1000311563 remote: MFi1000311563
32137 bytes sent in 0.0019 seconds (16371.30 Kbytes/s)
200 PORT command successful.
150 ASCII data connection for MFi1000320206 (160.95.81.142,46631).
226 Transfer complete.
local: MFi1000320206 remote: MFi1000320206
60448 bytes sent in 0.0034 seconds (17150.28 Kbytes/s)
200 PORT command successful.
150 ASCII data connection for MFi1000330557 (160.95.81.142,46632).
226 Transfer complete.
local: MFi1000330557 remote: MFi1000330557
25428 bytes sent in 0.0015 seconds (16219.48 Kbytes/s)
ftp> bye
221 Goodbye.


And, on the second server, I used ls -ltr, expecting the same result as on the second server. But, the list was jumbled up
-rw-rw-r-- 1 ediprod zedi 24927 Oct 31 08:00 MFi1000303320
-rw-rw-r-- 1 ediprod zedi 28844 Oct 31 08:00 MFi1000181967
-rw-rw-r-- 1 ediprod zedi 24051 Oct 31 08:00 MFi1000330557
-rw-rw-r-- 1 ediprod zedi 56855 Oct 31 08:00 MFi1000320206
-rw-rw-r-- 1 ediprod zedi 30374 Oct 31 08:00 MFi1000311563


Can any one help me why is the difference.

Last edited by zazzybob; 10-31-2005 at 06:59 AM.. Reason: Removed real-world hostname from post
# 2  
Old 10-31-2005
The Solaris definition of the -t flag is:
Quote:
-t
Sorts by time stamp (latest first) instead of by name. The default is the last modification time. (See -u and -c.)
This is not in accordance with Posix which mandates:
Quote:
-t
Sort with the primary key being time modified (most recently modified first) and the secondary key being filename in the collating sequence.
This is not great, but there are worse Posix violations. My guess is that Sun does not get many complaints on this one. Few users would take a collection of files created in the same second and then sort them with the timestamp being the primary sort key.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

ftp problem?

Dear All I cannot ftp to my RedHat server from MS Windows machine ,but ping and telnet are ok. I checked as the following : #chkconfig tftp on #setup After enabling tftp service, still the ftp is not ok but ping & telnet are ok. Can you please help me? Thank you (8 Replies)
Discussion started by: hadimotamedi
8 Replies

2. Shell Programming and Scripting

ftp problem

Hello, I have a very simple script that put a file in server ftp #!/bin/bash var="ITW-trail-templiers-samedi" cd /Users/$USER/Desktop ftp -n >&1 << EOF open server quote user "user" cd oberon binary put "$var" bye EOF I have error : 200 Type set to IMAGE. remote:... (2 Replies)
Discussion started by: protocomm
2 Replies

3. Shell Programming and Scripting

FTP Problem

Hello experts, I've got the following script that is supposed to FTP a file to another box. #!/usr/bin/ksh while read line do HOST=`echo "$line" | cut -d" " -f1` USER=`echo "$line" | cut -d" " -f2` PASSWD=`echo "$line" | cut -d" " -f3` PATH=`echo "$line" | cut -d" " -f4` done <... (5 Replies)
Discussion started by: King Nothing
5 Replies

4. Shell Programming and Scripting

problem in FTP

i m able to login to Unix box from window's cmd can anyone tell me how to run a script from window cmd using ftp ? the script is in unix box and i need to run from windows CMD using ftp (2 Replies)
Discussion started by: ali560045
2 Replies

5. Shell Programming and Scripting

problem with ftp:

i have got 2 servers in unix(IBM AIX 5.3) namely below. test1 production1 i m trying to do ftp from test1 to production1. ------------------------------------------------------------ below the script called naveed1.sh which lies in test1,also it have two files called ... (2 Replies)
Discussion started by: ali560045
2 Replies

6. HP-UX

FTP problem

We recently moved offices and checked our network ID. I have configured all the files that I am familiar with and am able to telnet and ping from my pc but I am unable to ftp. Any suggestions...Thanks (5 Replies)
Discussion started by: andrewd
5 Replies

7. Solaris

FTP problem

Hi Guys, Got problem when I tried to get files from Solaris server to my PC. The connection transfer was using FTP and the connection was made from the solaris server to my PC. Here's what happened when the file transfer being made: # ftp 10.192.23.230 Connected to 10.192.23.230. 220... (9 Replies)
Discussion started by: raskita
9 Replies

8. Shell Programming and Scripting

Ftp problem

hi i have written a shell to automate the ftp process for the particular file.iam getting errors when try to ftp it.And i am cant get why the lcd is not being taken properly as it is taking during runtime.can anyone give me a solution here its my code DATE=`date '+%d_%m_%Y'`... (1 Reply)
Discussion started by: cskumar
1 Replies

9. UNIX for Dummies Questions & Answers

FTP problem. please help

can someone tell me how I can deal with a problem am having concerning users that are faliing to use one of the shells specified in the /etc/shells file. as a result, am told, these users are bound fail to connect via FTP. i know i goto check the /etc/shells file on the target host but what... (5 Replies)
Discussion started by: TRUEST
5 Replies

10. UNIX Desktop Questions & Answers

ftp problem

I use FTP in a shell script to transfer the files to a remote server. Sometimes the program hangs without returning any errors after the command ftp server_name How do you detect from within the shell that something is wrong? How do you trap the errors returned by ftp command? Any help... (3 Replies)
Discussion started by: marusia
3 Replies
Login or Register to Ask a Question