Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ls returning unknown extra info

Status
Not open for further replies.

qlark

Programmer
Jan 5, 2006
54
CA
ls -lart is returning the standard info but for some entries in one of the directories it is returning some extra information;

-rw-rw-r-- 1 user vx 7245 Mar 01 08:02 elink00015220.txt :res 2230697844977266714 ext 2560695025468719812 align

Can anyone describe what this is and or if it is something to be concerned about.
 
My guess: just a long filename with blanks in it?

HTH,

p5wizard
 
There are no blanks in the filename it is a program generated file sequence ie

elink00015220.txt
elink00015221.txt
elink00015222.txt etc.

there are over 10 thousand files in this directory for history and I found this by doing a;

ls -lart | grep Mar | more

there are just a few files being listed this way ... just wondering if this is an error message of some sort.
 
It looks pretty clear that there are blanks (or possibly control characters or other whitespace) in the filename, and program generation is one of the easiest ways to end up with such a thing.

Try:

ls -lart | grep align | more

to confirm, then put a bug in the programmer's ear that they've got a bug in their program.

Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
You might want to open one of the files to see if there is an error message in it. It could contain tomorrow's winning lotto number :)







If it does, I want 10% :)



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
Well being that I am that programmer I do have my ears open ... I assure you the filename is clean out of the generator (just to make sure I put a trap to parse the filename after the name is generated to count the characters and test the ascii values). The original file is created by another process which triggers my program to pick up the file ... I then copy this file;

cp $OldPath$OldFileName $NewPath$NewGeneratedFileName

At this point doing a ls -lart on folder $NewPath shows that the file is fine ... once this file has been placed in the folder it is then picked up by an FTP script which does nothing more then push the file to another server followed by archiving the file; (the FTP script doesn't care about the file name so just uses wildcards)

mv -f $NewPath/*.* $HistoricPath

This Align stuff is only showing up in the historic folder so I am thinking the only way the filename could be changing is with the mv *.* ... if so could there be a setup or OS config issue?
 
can you post the script(s), inserting dummy values for any machine names, usernames, or passwords?

If so, please be sure to enclose it in a [ignore]
Code:
[/ignore] pair so it doesn't get mangled for viewing.

Have you confirmed that it's the filenames? A better approach than I gave above is to enclose the whole name in quotes, like so:
Code:
ls -l "elink00015220.txt :res 2230697844977266714 ext 2560695025468719812 align"

Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top