Tab Completion showing files that Dont Exist


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Tab Completion showing files that Dont Exist
# 1  
Old 05-25-2003
Error Tab Completion showing files that Dont Exist

Has anyone seen this before?

if i ls a particular directory (an email Maildir) i get a long list of files, if i 'du -h' that same directory, i get messages like:

du: `./1053894791.17207_0.srweb,S=6199': No such file or directory

strange. so using tab will complete this filename too, giving a similar message of

'ls: 1053889942.14462_0.srweb,S=6199: No such file or directory'

Probably not coincidentally IMAP isnt working either... i get all sorts of strange errors about not being able to copy files, etc...

So im hoping if i get to the root of the Filesystem problem the IMAP problem will likewise clear up.

Thanks everyone!

Ben Floyd
:: email removed ::

Last edited by oombera; 02-13-2004 at 01:18 PM..
# 2  
Old 05-27-2003
In directories that have files being created and removed constantly, you will see that type of behavior since the directory may have many (hundreds or thousands) files and if you go to ls or du, the mail program may have already sent some of the mail out and removed the file. The command you tried then goes to get the information about the file and can not.
# 3  
Old 05-27-2003
since IMAP went down, the file list has been static.
even if it was still 'flowing', i dont think du would grab a file that doenst exist even if it did a microsecond earlier. so in any case, du or ls in a normally functioning system would never read directories so sloppily.

i was really counting on a filesystem error, but fsck ran clean... d'oh
# 4  
Old 05-27-2003
A while ago I had a problem with the internal file table in an HP-UX system. The file table (I think) is an internal kernel table that the OS is maintaining for all it's inodes - or something like that.

When the file table became full up all sorts of weird things started happening to my system and they were not restricted to (what looked like) file system errors.

The problem was the system was running out of inodes it could use and maintain in the file system. The number of inodes can be configured on a HP-UX as a kernel parameter and I would imagine that it could be on other flavours of Unix too. You might try increasing this parameter.

In my system the inodes usage was the result of a directory structure which went to too many levels. This structure was associated with data storage by processing date. When the data was finished with, the data files were removed, but the directories were left behind. Thus, the disk space was reclaimed but not necessarily all the inodes. To solve this I had a pruning process written which would remove empty directories from this directory structure and therefore reclaim the inodes.

This may or may not be the cause of your problems but it won't hurt to check how your diretories are organised; it is always useful to audit disk usage from time to time!

Hope this helps

MBB
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Bash Tab Completion Hanging

Hi, I'm having a problem with tab completion at the bash command line. For some reason, whenever I type g<tab>, the terminal will freeze up for 5-10 seconds before asking me if I want to display all 325 possibilities. I thought that maybe it's because of the high number of commands, but I have... (4 Replies)
Discussion started by: Raz716
4 Replies

2. UNIX for Dummies Questions & Answers

Rsync copy files if dont exist

I have a setup where I have two drives. TV TVbackup For what ever reason, I have a lot of content on my TVbackup drive which isn't on my TV drive. I want to copy all the files across which are on TVbackup but are not currently on TV. If there is a file with the same name but a... (2 Replies)
Discussion started by: Spadez
2 Replies

3. Shell Programming and Scripting

Extract columns from a file if the name dont exist put blank

Hi, I am very new to Unix script. Suppose i have a file with column header: NAME1 NAME2 Address Tel And I always need to make a file with column header: ID NAME1 NAME2 EMail Address Tel For the columns that do not exist in the file, I would still like to make a column with blank. ... (11 Replies)
Discussion started by: nightrider
11 Replies

4. UNIX Desktop Questions & Answers

TAB completion in cygwin

Hi there, I ve been using cygwin for some time now without any problems. However, recently I ve mapped a new drive on Windows and are now having problems with TAB completion for awk scripts in cygwin on this newly mapped drive (cygdrive t). I can access and run all files but cygwin doesn't do... (5 Replies)
Discussion started by: Tommes
5 Replies

5. Shell Programming and Scripting

hp unix doesn't have tab completion

hi guys, i am new to HP unix , i am doing Solaris , i am just asking is there any thing like "bash" in hp unix including tab completion? (8 Replies)
Discussion started by: dagigg
8 Replies

6. HP-UX

color terminal and tab completion?

hello, i'm a linux zealot (fedora), so i know a some about unix. the company i work for uses HP-UX though and there are a few quirks i'd like smooth out by making them work more like my beloved redhat type systems...=) right now they have all users using ksh and completion is done by hitting... (4 Replies)
Discussion started by: clockworks
4 Replies

7. Shell Programming and Scripting

Tab completion in csh

Is it possible to set up my .cshrc so that a single tab attempts to autocomplete, while a double tab gives a list of all possible options. In other words, I want it to work like bash in this regard. Thanks! (3 Replies)
Discussion started by: James McMurray
3 Replies

8. UNIX for Dummies Questions & Answers

Tab completion gubbins

Hello all How do you configure unix terminal to list files as you tab complete. I'm using a unix terminal at work and when i first started tab complete on a folder would list all matches if there were more than one. eg. monkey.xml mon.xml monkeyboy.xml in one folder if i cd into... (2 Replies)
Discussion started by: GNUless
2 Replies

9. UNIX for Dummies Questions & Answers

Tab Completion on Solaris 10

Hi, Is there a way to turn on tab completetion on Solaris 10? (2 Replies)
Discussion started by: annointed3
2 Replies

10. UNIX for Dummies Questions & Answers

tab completion using ! history command

Hi all, I recently discovered the ! command. I think it's great that !cd ? will match the last command that began with cd ?. However, for ! to be particularly useful to me (for now anyway) it would be nice if there was a tab completion option available (as with the cd command). Does anyone know... (3 Replies)
Discussion started by: x-375HK-x
3 Replies
Login or Register to Ask a Question