Mailinglist Archive: opensuse (2441 mails)

< Previous Next >
Re: [SLE] execute a .tcl file
  • From: Michael Fischer <michael@xxxxxxxx>
  • Date: Thu, 23 Jun 2005 22:00:53 -0400
  • Message-id: <20050624020053.GA671@xxxxxxxxxxxxxxxxxxxxxx>
On Wed, Jun 22, Theo v. Werkhoven wrote:
> Wed, 22 Jun 2005, by lrenard@xxxxxxxxxxx:
>
> > Le mercredi 22 juin 2005 à 23:09 +0200, Theo v. Werkhoven a écrit :
> >
> > > Wed, 22 Jun 2005, by lrenard@xxxxxxxxxxx:
> > >
> > > > Hi everybody,
> > > >
> > > > how could i execute a .tcl file ?
> > >
> > > Normally you'd set the execute bit and rely on file(1) to
> > > do its magic when you invoke ./file.tcl
> > >
> > > > I've install tcl & tclx but ... it doesn't works


$ cat tossme.tcl
puts("foo")

$ tclsh tossme.tcl
foo
$

also you can simply run tclsh from the commandline
to get a read-eval-loop environment (if it is appropriate
to borrow that term from LISP...)

enjoy

Michael
--
Michael Fischer Happiness is a config option.
michael@xxxxxxxx Recompile and be happy.

< Previous Next >