Re: is tcl a reasonable alternative to unix shell scripts?
- From: "slebetman@xxxxxxxxx" <slebetman@xxxxxxxxx>
- Date: 8 Aug 2006 20:02:44 -0700
Charles Russell wrote:
Bruce Hartweg wrote:
Charles Russell wrote:
Jeff Godfrey wrote:
<snip>I note that python and ruby have equivalents to the unix "find"
command, but I cannot find on skimming the tcl documentation that it
has a good set of tools for manipulating the file system.
Hi Charles,
Tcl has a library of "common" functions and utilities known as
"tcllib". While it's not part of the "core" of tcl, it's readily
available and easy to load and use.
What is the command
syntax to test my tcllib installation by invoking, for example,
fileutil::cat under tclsh?
see the man page for package, but it is simply
package require fileutil
fileutil::cat $file
Thanks. I evidently have a corrupted installation or configuration:
$ tclsh
% package require fileutil
can't find package fileutil
I don't think you have a corrupted installation, simply you don't have
tcllib installed.
I need tcllib to run under cygwin, which is not one of the platforms
supported by activestate. tcl/tk is running fine, so the fix is
probably simple, but I am an absolute beginner, so I'll try to get help
from the cygwin mailing list.
Normally on windows I'd strongly recommend running Tcl native by
installing the Activestate distro but I guess you have good reasons for
using cygwin. In which case you can download Tcllib from sourceforge:
http://tcllib.sourceforge.net/
To install tcllib simply untar it and do the usual ./configure; make
install (or run the installer.tcl script, in any case read the
INSTALL.txt file). You may need to change --prefix if you have tcl
installed in strange places.
.
- References:
- is tcl a reasonable alternative to unix shell scripts?
- From: Charles Russell
- Re: is tcl a reasonable alternative to unix shell scripts?
- From: Jeff Godfrey
- Re: is tcl a reasonable alternative to unix shell scripts?
- From: Charles Russell
- Re: is tcl a reasonable alternative to unix shell scripts?
- From: Bruce Hartweg
- Re: is tcl a reasonable alternative to unix shell scripts?
- From: Charles Russell
- is tcl a reasonable alternative to unix shell scripts?
- Prev by Date: Re: How to get a frame's width and height?
- Next by Date: Re: is tcl a reasonable alternative to unix shell scripts?
- Previous by thread: Re: is tcl a reasonable alternative to unix shell scripts?
- Next by thread: Re: is tcl a reasonable alternative to unix shell scripts?
- Index(es):
Relevant Pages
|
|