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 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
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))

B

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.

B

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 www.opentalk.org.uk 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., 2024: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho