Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got a script which calls "mkdir" like this:

mkdir -p dir0/dir1 dir0/dir1/dir2.0 dir0/dir1/dir2.1 dir0/dir1/dir2.2

It is run on a very heavily loaded NFS server over NFS3 and about half the time the script runs it works fine - all the directories list above are created. The other half of the time only dir0/dir1 is created but none of the dir2.* directories. Strangely, mkdir seems to exit 0 even though not all the directories are created.

Any idea why this is happening? At least an error code would be useful.

share|improve this question

try checking verbose, if that can help.

mkdir -p -v dir0/dir1 dir0/dir1/dir2.0 dir0/dir1/dir2.1 dir0/dir1/dir2.2

share|improve this answer
    
I've added it - will be curious to see if anything pops up. I don't know if it's the answer but good suggestion! – dromodel Nov 30 '12 at 17:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.