passing tcl list to args of an external program
- From: roa6v@xxxxxxxxxxxxxxxxxxxxxx (Anon432 Vqfz)
- Date: Thu, 29 Nov 2007 13:36:20 +0000 (UTC)
Consider this bash test script:
$ bash -c 'for f;do echo "myarg: $f";done' TESTSCRIPT 'first arg' 'second arg'
myarg: first arg
myarg: second arg
How might I drive the arguments sent to the
above script with a tcl list? I want the method
to to be generic enough, so it does
not matter what is in the list.
The only approaches that seem to work for me, involve
figuring out a way to metaquote the arguments when required.
But, I'm inexperienced w/tcl.
--
thanks much,
Tom
--
roa6v@xxxxxxxxxxxxxxxx
SDF Public Access UNIX System - http://sdf.lonestar.org
.
- Follow-Ups:
- Re: passing tcl list to args of an external program
- From: Glenn Jackman
- Re: passing tcl list to args of an external program
- Prev by Date: Re: Plotchart ideas (was: Can BLT be replaced by Tcl packages ?)
- Next by Date: Re: need help
- Previous by thread: Automating the printer command testing
- Next by thread: Re: passing tcl list to args of an external program
- Index(es):