Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
For 2021 - online Python 3 training - see ((here)).

Our plans were to retire in summer 2020 and see the world, but Coronavirus has lead us into a lot of lockdown programming in Python 3 and PHP 7.
We can now offer tailored online training - small groups, real tutors - works really well for groups of 4 to 14 delegates. Anywhere in the world; course language English.

Please ask about private 'maintenance' training for Python 2, Tcl, Perl, PHP, Lua, etc.
Quiz: source [ locate myscript.tcl] doesn't work..

Posted by c0 (c0), 7 February 2005
Does anybody know of some problems with

"source [locate /.../.../.../myscript.tcl]"

over NFS mounted directories ?

I get:

couldn't read file "/.../.../.../myscript.tcl": no such file or directory
   while executing
"source [locate /.../.../.../myscript.tcl]"

The weird thing is that 9 out of 10 times all functions properly.

The only thing is that this file is sourced by multiple scripts simultaneously.

Does "source [ locate ..." require write permissions or block simultaneous access in any way ?

Anyone got some experiences with NFS mounts and "source [ locate" perhaps ?

Posted by Custard (Custard), 7 February 2005
Do you really mean  /.../...  or did you mean /../  ?

.. (double dot) means the parent directory.

... (three dots means nothing (AFAICR))


Posted by c0 (c0), 7 February 2005
/.../.../.../ = read: path to a file

Posted by Custard (Custard), 7 February 2005
Sorry, wasn't sure as your error message had '...' too..

Well, permissions spring to mind, but you say it works 9 out of 10 times? . Hmmm.

Are your systems Unix or Windows or a mixture?

Are your multiple processes on the same machine or different ones?

AFAICR source does no locking as it only reads. Locking on NFS is complex or non existant.

If your NFS client machine is Windows, maybe Windows is doing some kind of locking. (I am not very familiar with Windows).

Sorry I can't be more helpful, but maybe if you provide some answers to the above, I or someone else may be able to help more.


Posted by selfism (selfism), 7 February 2005
If you can trace the calls the program is making and the response it is getting you may be able to isolate it a little more.

For Windoz no idea !

For Linux:
strace yourprogram

For Solaris:
truss yourprogram

This has helped me solve many problems, I hope it helps!

This page is a thread posted to the opentalk forum at and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2022: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: • WEB: • SKYPE: wellho