weird file list problem

When I do a file list in my spooler directory, I get the following
information
#ls -l |pg
-rw-rw-rw- 1 user1 ugroups 831690 Apr 03 12:52 K6A80403125051.prn :res 2330479869879093344 ext 2330477052380546512 align
-rw-rw-rw- 1 user1 ugroups 5900 Apr 03 14:19 K6A80403141858.idx :res 2330595387319513456 ext 2330592569820966624 align
-rw-rw-rw- 1 user1 ugroups 213772 Apr 03 14:19 K6A80403141858.prn :res 2330710904759933568 ext 2330708087261386736 align
-rw-rw-rw- 1 user1 ugroups 4744 Apr 03 16:05 K6A80403160554.idx :res 2330826422200353680 ext 2330823604701806848 align

I would like to know what is :res 2402755442114055840 ext 2402752624615509008 align
and how to fix this problem.
Thanks

JMMora

That's part of the filename.
I suppose the problem is the white spaces on it, isn't it? Anyway, what's the problem? :slight_smile:

Yes is part of the name we are expected only the following

-rw-rw-rw- 1 user1 ugroups 831690 Apr 03 12:52 K6A80403125051.prn
-rw-rw-rw- 1 user1 ugroups 5900 Apr 03 14:19 K6A80403141858.idx
-rw-rw-rw- 1 user1 ugroups 213772 Apr 03 14:19 K6A80403141858.prn
-rw-rw-rw- 1 user1 ugroups 4744 Apr 03 16:05 K6A80403160554.idx

I mean without the " :res 2330479869879093344 ext 2330477052380546512 align " part because I you try to copy, move or even use FTP you will the error "file doesn't exist".

Well, I do not know why you are naming those files that way. At least not with the info you are providing us with... But I can tell you how to manage with those files. Two options, as far as I know:

  • Name them using a back slash before the white space:
    ls K6A80403125051.prn\ :res\ 2330479869879093344\ ext\ 2330477052380546512\ align
  • Use quotes:
    ls "K6A80403125051.prn :res 2330479869879093344 ext 2330477052380546512 align"

Back to the reason for that filenames, how are them being created? by a script? program? Tell us, so that we can help you.

Regards.

Usually the file is created by a program, however I did a test going to the spooler directory and create a files named test with the following command.

$> banner test >test
$> ls -d test
-rw-r--r-- 1 user1 ugroups 184 Apr 21 11:51 test :res 2830710304859933568 ext 2338726239841386736 align

I don't know from where is coming the part :res 2830710.......

I am Still looking for a solution.:(:frowning:

Are you sure you are using the right ls command, try it will a full path.

The output you see seems to be from the ls -El command.

Check the man page for the -E switch.

I had never seen that before, but that's most probably right. You might have an alias defined...

Problem Fixed.

IY79763: LS PRODUCES OUTPUT WITH EXTRANEOUS CHARACTERS

A fix is available

Obtain fix for this APAR

APAR status
Closed as program error.

Error description

ls -l produces invalid output when listing status for large
directories.
This problem was fixed via IY42900 but later regressed.
This affects not only the -l flag, but also flags that
are related to the -l flag (-e, -g, -n, -o, and -U).

Local fix

Problem summary

ls -l produces invalid output when listing status for large
directories.

Problem conclusion

Initialization of the lbuf structure to zero so that the
garbage returned from previous memory allocations can be
avoided.

Temporary fix

Comments

APAR information
APAR number IY79763
Reported component name AIX 5.3
Reported component ID 5765G0300
Reported release 530
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2005-12-13
Closed date 2006-03-21
Last modified date 2008-07-16

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Publications Referenced

Fix information
Fixed component name AIX 5.3
Fixed component ID 5765G0300

Applicable component levels
R530 PSY U498648 UP06/08/11 I 1000

PTF to Fileset Mapping
U498648 bos.rte.commands 5.3.0.50