Operating System - HP-UX
1834915 Members
2510 Online
110071 Solutions
New Discussion

Re: Problem with FTP and dateformat

 
Schneider_10
Occasional Contributor

Problem with FTP and dateformat

I've detected some strange things with ftp. By opening an ftp connection to some of our HP-UX servers I see that files which have been created during the beginning of march shown in a strange date format. The month march will be displayed with the german name. When I login to the same servers with an account to the shell and listen all the files in the directoy ( to which I have before access to with ftp) all fils are displayed with the normal date format. Has someone an idea what the problem could be? Thanks for any help!!
4 REPLIES 4
Steve Steel
Honored Contributor

Re: Problem with FTP and dateformat

Hi


ftp uses the LANG out of
/etc/rc.config.d/LANG

Check it on the machine.


Normal login will set lang


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Schneider_10
Occasional Contributor

Re: Problem with FTP and dateformat

Hi,

thanks for your answer! This information help me a little bit. But what I need to know why in ftp the month will display at M??rz and in the normal shell login as march. We don't set any LANG variable in our profiles.
Ralph Grothe
Honored Contributor

Re: Problem with FTP and dateformat

Could it be that the ls binary copy in the change root environment of the ftp server (e.g . ~ftp/bin/ls) is deviating in any way from the "normal" ls from /sbin or /usr/bin?
I have no idea, but read the manpages of ftp, ftpd, ls to find out what environment/locale/i18n settings are influencing their behavior.
Madness, thy name is system administration
Ron Kinner
Honored Contributor

Re: Problem with FTP and dateformat

Suspect it's a .profile or .login getting involved. Are you the same username in both cases?

Ron