Can you tell absolutely sure whether type requires file lock, and if yes – which type of lock? Originally, I had almost the same situation as you suggested, the only difference is that I’m using Perl interpreter, not type command. So, I need something more open for analysis. Maybe, I’ll just write a simple program for that…