Wojciech Kocjan wrote:
>
> Maybe it's not always loaded alphabetically.
>
> Try putting them in one file, or if that can't be done, make a dir and
> put this script in the library directory:
>
> foreach file [lsort [glob /path/to/that/directory/*.tcl]] {
>     if {[catch {source $file} er]} {
>         ns_log notice "$file: error: $er\n$errorInfo"
>     }  else  {
>         ns_log notice "$file: OK"
>     }
> }

I thought about it, so I check it before sending question to list.
In file with myFunc I set
        ns_log notice {Loading myFunc...} - and it is in this fragment of log
on the first line
and in file with call to myFunc
        ns_log notice {init of service finished} - and it is in the 4-th line
so it seems files are loaded in an alphabetical order (and error still
exists)

> On 19 Jul, Remigiusz Sokolowski wrote:
> > Hi!
> > Here few lines from my server log
> >
> > [19/Jul/2001:08:22:43][26830.1024][-main-] Notice: Loading myFunc...(*
> > this comment shows, when file with myFunc is loaded)
> > [19/Jul/2001:08:22:43][26830.1024][-main-] Notice: level: 3
> > [19/Jul/2001:08:22:43][26830.1024][-main-] Notice: enc: iso8859-1
> >
> > [19/Jul/2001:08:22:43][26830.1024][-main-] Notice: init of service
> > finished (*here I run 'ns_thread begindetached myFunc')
> > [19/Jul/2001:08:22:43][26830.4101][-thread4101-] Error: invalid command
> > name "myFunc"
> > invalid command name "myFunc"
> >     while executing
> > "myFunc"
> > [19/Jul/2001:08:22:43][26830.1024][-main-] Notice: nsmain:
> > AOLserver/4.0b1 running
> > [19/Jul/2001:08:22:43][26830.1024][-main-] Notice: nsmain: security
> > info: uid=99, euid=99, gid=99, egid=99
> > [19/Jul/2001:08:22:43][26830.2051][-sched-] Notice: sched: starting
> > [19/Jul/2001:08:22:43][26830.3076][-socks-] Notice: socks: starting
> >
> > Any thoughts, what can produce this error? I thought it was a sequence
> > of loading script files, but not.
> > And this is not always - it happens once per 20 or more times (there is
> > no rule, I believe)
> > btw. AOLserver is 4.0b as You can see from log, system is Linux RedHat
> > 6.2 with kernel 2.2.14-5.0
> >
> > myFunc and its call are in two different files
> > Thanks in advance
> > --
> >
> > -------------------------------------------------------------------/\------
> > Remigiusz Sokolowski      e-mail: [EMAIL PROTECTED]            /  \
> > -----------------------------------------------------------------/____\-----
> >
> >

--

-------------------------------------------------------------------/\------
Remigiusz Sokolowski      e-mail: [EMAIL PROTECTED]            /  \
-----------------------------------------------------------------/____\-----

Reply via email to