Operating System - HP-UX
1824830 Members
3454 Online
109674 Solutions
New Discussion юеВ

ftp display "date" before pdf file name.

 

ftp display "date" before pdf file name.

Hello, customer has a problem connecting to a ftp server [11.31]. From a windows pc the files have been displayed with the date before the file name like follow

25 12:20 ZFCO_BILANCE_FILE.pdf
with date 01/01/1980

from another unix server the files are correctly showed.
any idea? could it be a format setting ?

thanks
Alex
Vigno
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: ftp display "date" before pdf file name.

Shalom Alex,

its probably the crappy client they build into windows.

Does it happen with 11.11 or 11.23 boxes?

What are the settings for wu-ftpd?

Can you get the client to maybe try with filezilla, a quality piece of software?

Has the 11.31 system been updated with a recent bi-annual patch update?

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven Schweda
Honored Contributor

Re: ftp display "date" before pdf file name.

> [...] From a windows pc the files have
> been displayed [...]

Using _what_ as the FTP client?

> could it be a format setting ?

Yes, but you haven't showed us what the FTP
server provides as a file listing, so it's
hard for the non-psychics among us to know
what "correctly showed" actually means.

Which FTP server you're using might also
matter.

Re: ftp display "date" before pdf file name.

Steven E. Protter,from hpux server runs well.
the bundle installed on 11.31 are the latest.

Steven Schweda,
> "25 12:20 ZFCO_BILANCE_FILE.pdf"
with date 01/01/1980
means that the name field is composed like follow:
" "

Attached the customer's output.
From unix is displayed correctly:
"ZFCO_BILANCE_FILE.pdf"
Vigno
Steven Schweda
Honored Contributor

Re: ftp display "date" before pdf file name.

> Attached the customer's output.

About all that tells me is that the user is
using MSIE, perhaps the least
likely-to-work-right Web browser on the
market today. Assuming that these files are
not actually dated "1 January 1980", I'd
guess that the file listing being provided by
the FTP server is being misinterpreted by
MSIE.

Among the things it doesn't tell me is what I
asked for, namely, what the FTP server
provides as a file listing, which is probably
what you're seeing using a simple
command-line FTP client "from another unix
server", but which you don't seem to be
willing to share with the rest of us.

> From unix is displayed correctly:

I'm glad you think so, but I'd prefer to see
it for myself. Hint: If it doesn't look
pretty much like the following, then it'll
probably confuse MSIE:

-rwxrwxrwx 1 antinode 513 116 May 28 01:02 a3.sh
-rw-rw-rw- 1 antinode 513 280 May 28 2007 ab.zip
-rwxrwxrwx 1 antinode 513 18 May 28 00:38 b.sh

Re: ftp display "date" before pdf file name.

Problem solved leaving the LANG setting contained in /etc/rc.config.d/LANG. It was set the italian one:
#LANG=it_IT.iso88591
#export LANG
thnaks
Alex
Vigno
Steven Schweda
Honored Contributor

Re: ftp display "date" before pdf file name.

> Problem solved leaving the LANG setting [...]

Which would probably have been even more
obvious if you had supplied some of the
requested info, like "what the FTP server
provides as a file listing". FTP was
originally intended for use people, not
programs, so standard formats for file
listings were not considered necessary.
Smarter FTP clients, like MSIE, may think
that they know how to interpret "ls -l"
output, but they typically will not deal
correctly with the results of having
modern/non-US LANG or LOCALE settings on the
FTP server.

If you wish to leave a LANG setting in a
global place (like /etc/rc.config.d), you may
be able to replace the normal "ftpd" program
(in /etc/inetd.conf) with a script which sets
the desired (old-style) environment, and then
runs the real "ftpd".