Re: Execution of external commands
- From: Uwe Klein <uwe_klein_habertwedt@xxxxxxxxxxx>
- Date: Tue, 10 Mar 2009 09:55:44 +0100
pn8830 wrote:
The only question I have is how to trigger
the unknown? For the example in my previous post just put:
eval $inp
This will cause an error because the variable "inp" does not exist.
lets try ( assumed the [unknown] proc exists as set up in the interactive
shell :
set inp "grep hanana [glob *.txt]"
eval $inp
will look for a proc named "grep". ( first token on the line )
This will not be found inside tcl which leads to unknown
being run with the complete line from $inp
as a list of arguments.
unknown then tries to find a system executable with
the name grep and execing that with the remaining args
attached.
notice there is no shell involved, so you will have to
do wildcard expansion on your own ( or change unknown
in such a way that it runs the command in a subshell.
uwe
.
- References:
- Execution of external commands
- From: Pavel Novozhilov
- Re: Execution of external commands
- From: Uwe Klein
- Re: Execution of external commands
- From: pn8830
- Execution of external commands
- Prev by Date: Re: multiple gets in client server program
- Next by Date: Re: TDBC documentation, examples, syntax?
- Previous by thread: Re: Execution of external commands
- Next by thread: Re: Execution of external commands
- Index(es):
Relevant Pages
|