Re: Calling one tcl script from another with parameters
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Calling one tcl script from another with parameters

From: Adrian Ho <tcl@03s.net>
Date: Mon Dec 19 2005 - 11:10:52 CET

On 2005-12-19, slebetman@yahoo.com <slebetman@gmail.com> wrote:
> Actually, doing source will also work, just manually set argv and argc:
>
> global argc argv
> set argv "a b c"
> set argc [llength $argv]
> source xyz.tcl

http://wiki.tcl.tk/10025 takes a similar approach, but preserves argc
and argv and encapsulates the entire process in a neat little proc.

Regards,
Adrian
Received on Fri Dec 23 19:02:05 2005