Operating System - HP-UX
1836682 Members
2640 Online
110108 Solutions
New Discussion

Re: what's wrong with ftp's filename?

 
proad
Advisor

what's wrong with ftp's filename?

WINDOWS 2000, ftp with Explorer:
ftp://username:password@ip
(HP-UX B.11.11 U 9000/800 (tc))

ftp don't list the filename correctly, filename is contains the date of the file.
see the gif picture.

how to correct it? thanks.
19 REPLIES 19
proad
Advisor

Re: what's wrong with ftp's filename?

here is the gif picture:

http://www.ittide.com/temp/ftp.gif
Florian Heigl (new acc)
Honored Contributor

Re: what's wrong with ftp's filename?

Admitted, this is not a fix, but:
If possible in any way don't use internet explorer for this,
- Your password might end up in the browser history
- It can't read symlinks

there are other ftp clients available for free or cheap, and I bet the problem will also resolve.

If that is not an option and You have MS Support, call them and ask for a fix for the graphical ftp support. (have fun ;)
yesterday I stood at the edge. Today I'm one step ahead.
proad
Advisor

Re: what's wrong with ftp's filename?

thanks Florian Heigl for your reply.

when FTP-Open from UltraEdit-32's menu, the same bug appear, how to resolve it?

and the bug is HP-UNIX's bug? or WINDOWS API's bug? or UltraEdit's bug?
I think it is WINDOWS API's bug, right?
Florian Heigl (new acc)
Honored Contributor

Re: what's wrong with ftp's filename?

With it also appearing in an 'open' dialog I think Your right it should be something api-related, but something else came to my mind.

I just remembered I got a techdoc from HP concerning chinese locale support, but it was mostly concerned with CDE. still it might be work checking if
locale -a
also lists Your ISO environment.

Unfortunately I have no idea how to find out which character encoding etc. is requested by windows.
But if there is no locale that sounds like chinese, You should search in that direction.
yesterday I stood at the edge. Today I'm one step ahead.
proad
Advisor

Re: what's wrong with ftp's filename?

thanks for your reply.

I also notice that the time of the file determines whether the filename disply correctly:
if time of file is "YYYYMMDD", then, if "MM" less than 10 and "DD" less than 10, the filename display correctly, otherwise, it don't. that is to say, if there is a blankspace before month and day, the filename will display correctly, otherwise, the filename will contain the time of the file.
so, only the "sql" directory display correctly:

ftp> ls -l
drwxr-x--- 2 wkf business 96 1æ 20æ ¥ 15:13 lib
drwxr-x--- 8 wkf business 2048 1æ 20æ ¥ 15:13 new
drwxr-x--- 8 wkf business 2048 1æ 20æ ¥ 15:13 old
drwxr-x--- 4 wkf business 96 1æ 20æ ¥ 15:13 s4o
drwx------ 2 wkf business 2048 1æ 2æ ¥ 10:01 sql


can I set the LANG or LC_TIME entironment to English to resolve it? because that may keep a blankspace before month and day of the file time. but how to set it?thanks very much.

>>> locale
LANG=C
LC_CTYPE="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=


>>> locale -a
C
POSIX
C.iso88591
C.iso885915
C.utf8
univ.utf8
ar_DZ.arabic8
ar_SA.arabic8
ar_SA.iso88596
bg_BG.iso88595
zh_CN.hp15CN
zh_CN.utf8
zh_HK.big5
zh_HK.utf8
zh_TW.big5
zh_TW.ccdc
zh_TW.eucTW
zh_TW.utf8
cs_CZ.iso88592
da_DK.iso88591
da_DK.iso885915@euro
da_DK.roman8
nl_NL.iso88591
nl_NL.iso885915@euro
nl_NL.roman8
en_GB.iso88591
en_GB.iso885915@euro
en_GB.roman8
en_US.iso88591
en_US.roman8
fi_FI.iso88591
fi_FI.iso885915@euro
fi_FI.roman8
fr_CA.iso88591
fr_CA.iso885915
fr_CA.roman8
fr_CA.utf8
fr_FR.iso88591
fr_FR.iso885915@euro
fr_FR.roman8
fr_FR.utf8
de_DE.iso88591
de_DE.iso885915@euro
de_DE.roman8
de_DE.utf8
el_GR.greek8
el_GR.iso88597
iw_IL.hebrew8
iw_IL.iso88598
hu_HU.iso88592
is_IS.iso88591
is_IS.iso885915@euro
is_IS.roman8
it_IT.iso88591
it_IT.iso885915@euro
it_IT.roman8
it_IT.utf8
ja_JP.SJIS
ja_JP.eucJP
ja_JP.kana8
ja_JP.utf8
ko_KR.eucKR
ko_KR.utf8
no_NO.iso88591
no_NO.iso885915@euro
no_NO.roman8
pl_PL.iso88592
pt_PT.iso88591
pt_PT.iso885915@euro
pt_PT.roman8
ro_RO.iso88592
ru_RU.iso88595
hr_HR.iso88592
sk_SK.iso88592
sl_SI.iso88592
es_ES.iso88591
es_ES.iso885915@euro
es_ES.roman8
es_ES.utf8
sv_SE.iso88591
sv_SE.utf8
sv_SE.iso885915@euro
sv_SE.roman8
th_TH.tis620
tr_TR
proad
Advisor

Re: what's wrong with ftp's filename?

sorry, the forum don't display double bytes character correctly.so I replace it with **:

ftp> ls -l
drwxr-x--- 2 wkf business 96 1**20** 15:13 lib
drwxr-x--- 8 wkf business 2048 1**20** 15:13 new
drwxr-x--- 8 wkf business 2048 1**20** 15:13 old
drwxr-x--- 4 wkf business 96 1**20** 15:13 s4o
drwx------ 2 wkf business 2048 1** 2** 10:01 sql
Eric Antunes
Honored Contributor

Re: what's wrong with ftp's filename?

Hi proad,

Do you have patches PHSS_26975, PHSS_26977 installed?

Kindest Regards,

Eric Antunes
Each and every day is a good day to learn.
proad
Advisor

Re: what's wrong with ftp's filename?

Eric Antunes:
>>> swlist | grep PHSS_26975
>>> swlist | grep PHSS_26977
the results of the two commands is empty.

should I install the patch?
download from hp?

install with these commands:
swinstall -s PHSS_26975.depot
swinstall -s PHSS_26977.depot

right?

thanks:)
Eric Antunes
Honored Contributor

Re: what's wrong with ftp's filename?

Hi,

Go to:

http://www4.itrc.hp.com/service/patch/search.do?BC=patch.breadcrumb.main|&pageContextName=hpux:::

and select your hardware model (800) and OS version (11.11) and do a "Search by Keyword" with "CHINESE" word. You will get a few pacthes: select only those 2 and click on the "Add to Selected Patch List" button at the bottom of the page (You'll need to install also PHSS_31179 since it is a dependency). Download them, unzip and install: you'll need to run the create_depot_hp-ux_11... script that will create a patch BUNDLE for you...?

Kindest Regards,

Eric Antunes
Each and every day is a good day to learn.
proad
Advisor

Re: what's wrong with ftp's filename?

thanks very much.

For some unknown reason, I can't download the files you mentioned. I have downloaded another 3 files:
PHSS_31179
PHSS_26975
PHSS_26977

>>> cp PHSS_31179 PHSS_26975 PHSS_26977 /tmp/

cd /tmp/
>>> sh PHSS_31179
>>> sh PHSS_26975
>>> sh PHSS_26977

>>> swinstall -x autoreboot=true -x patch_match_target=true -s /tmp/PHSS_31179.depot
this installation is ok.

but,
>>> swinstall -x autoreboot=true -x patch_match_target=true -s /tmp/PHSS_26975.depot
>>> swinstall -x autoreboot=true -x patch_match_target=true -s /tmp/PHSS_26977.depot
this 2 installation failed:

======= 01/21/05 12:08:26 MST BEGIN swinstall SESSION
(non-interactive) (jobid=cjtest-0052)
* Session started for user "root@cjtest".
* Beginning Selection
* Target connection succeeded for "cjtest:/".
NOTE: The patch match operation failed to find patches for target
software on "cjtest" which passed the filter.
NOTE: Cannot continue the "swinstall" task.
======= 01/21/05 12:08:27 MST END swinstall SESSION (non-interactive)
(jobid=cjtest-0052)

what's wrong? thanks.
Eric Antunes
Honored Contributor

Re: what's wrong with ftp's filename?

Hi,

Why do you use patch_match_target=true? Can you try without this option??

Eric Antunes
Each and every day is a good day to learn.
proad
Advisor

Re: what's wrong with ftp's filename?

>>> swlist | grep PHSS_26975
>>> swlist | grep PHSS_26977
the results of the two commands is empty.

but,
>>> swlist -l product | grep PHSS_31179
>>> swlist -l product | grep PHSS_26975
>>> swlist -l product | grep PHSS_26977
none of these commands's results is empty.

so, before I try to install, they are installed.

but, the ftp's filename is not correct!

how to resolve it, then?
proad
Advisor

Re: what's wrong with ftp's filename?

thanks,

and, the idea below may be very very helpful(but how to do it?):

when I using "ls" on the ftp's command line:
ftp> ls
drwxr-x--- 2 wkf business 96 1**21** 15:55 lib
(the Chinese double bytes character is replaced with "**")

if time of file is "YYYYMMDD", then, if "MM" less than 10 and "DD" less than 10, the filename display correctly, otherwise, it don't. that is to say, if there is a blankspace before month and day, the filename will display correctly, otherwise, the filename will contain the time of the file.

how to config the ftp server to the result below?
ftp> ls
drwxr-x--- 2 wkf business 96 Jan 21 15:55 lib
the time of the file is in English format, which keep a blankspace before month and day of the file time, the ftp's filename will display correctly.

but how to config it? thanks very much. I will get you 10 points, because I conclude this will resolve my question.

my HP-UNIX FTP server version: FTP server (Version 1.1.214.4(PHNE_23950))
Eric Antunes
Honored Contributor

Re: what's wrong with ftp's filename?

Hi,

To see if you have a patch installed:

#swlist -l patch

PHNE_23950 is old: install PHNE_29461 that is the recomended one for now...

Best Regards,

Eric Antunes
Each and every day is a good day to learn.
Dave La Mar
Honored Contributor

Re: what's wrong with ftp's filename?

proad -
Short term help while you find a solution -
1. Ftp to the machine and directory from unix or some other machine.
2. get æ  20æ ¥* some_readable_name.txt

This is a good one. Will follow the
"I'm not dumb. I just have a command of thoroughly useless information."
proad
Advisor

Re: what's wrong with ftp's filename?

thanks.

I know that "ls" command on FTP command line is ok, and that "get" command on FTP command line is ok, but, the convenience of GUI FTP tools can't be substituted by command line FTP tools.

I conclude that, my problem is not caused by some wanting HP-UNIX's patchs. if somebody tell me how to config the FTP server to list the FTP file's time in English format, my problem will be resolved. but, how to config it?

thanks very much.
Eric Antunes
Honored Contributor

Re: what's wrong with ftp's filename?

Hi,

When using Dos FTP and listing the files, do you see them correctly? If so, them the problem must be related with your Win FTP utility...

Eric Antunes
Each and every day is a good day to learn.
proad
Advisor

Re: what's wrong with ftp's filename?

thanks.

I have resolved it, very easy:
unset LANG and restart FTP server.
proad
Advisor

Re: what's wrong with ftp's filename?

thanks.

I have resolved it, very easy:
unset LANG and restart FTP server.