more package unknown command

From: Alexander (alexander_at_edem.g12.br)
Date: 10/28/03


Date: 27 Oct 2003 17:07:02 -0800

I need continue my tutorial and I need some examples about "package
unknown" command.

That is it!

So... the script here not work.

The problem:

If version of package exist, so, TCL don't show me anything(is
correcty).
If version of package not exist, TCL show the default error and not
run my procedure.
If I put "package unknown" instruction before "package require", TCL
show me error and run my procedure even package exist!
Yes, I clear "package unknown" instruction.

news:<slrnbpq7ea.3j2.dgp@clover.cam.nist.gov>...
> Alexander wrote:
> > I can't do one example about "package unknown".
>
> It is very rare for there to be a need to use the [package unknown]
> command. What is it you are trying to accomplish? You may be
> trying to use the wrong command.
>
> > proc error_load { name_pkg ver_pkg } {
> > puts "Cannot load package $name_pkg or version $ver_pkg of
> > package."
> > }
> > package unknown error_load
> > package require inutil 1.4.0
>
> So that "works", though I doubt it does what you want.
> Can't really help any more with knowing what you want.



Relevant Pages

  • Re: Ran ccmclean on site server, what are implications???
    ... i ran the synctool command line in a cmd running under system account using ... The sync tool only has to retrieve the files from the distribution share ... only created the package folder. ... baffles me that the advanced client that resides on the sms ...
    (microsoft.public.sms.setup)
  • Re: What are the core packages for a desktops Linux desktop distribution?
    ... Your use of the term package is a bit confusing ... You'll need the mount command as well. ... As for Gnome, if you are going for minimalism, I ... wouldn't install it - you don't need it. ...
    (comp.os.linux.misc)
  • Re: Life on the Command Line
    ... Gutsy as the IM package or the ICQ package. ... There are a lot of games you can play in the Command Line, ... terminals in one window (like tabbing, except it can be used everywhere, ...
    (Ubuntu)
  • Re: now do you "link" .tcl files?
    ... I think from the position of a newbie, this is how linking in Tcl ... At the time of the call, Tcl looks up the command named "foo" using ... pkgIndex.tcl for a Tcl-only package usually contains ...
    (comp.lang.tcl)
  • Re: perl menubased user interface
    ... actually use a perl package OR a hash for this, In a "perl package" ... sub map_method { ... # and they're all shell commands. ... Do whatever you want to wrap a shell command. ...
    (comp.lang.perl.misc)