[ns] how to add shell script or shell command into tcl Re: how to add shell script or shell command into tcl script.

Ash ashton.wilson at googlemail.com
Sun Mar 30 12:38:51 PDT 2008


Hi,

the way I use is (to run a python script):
exec ./scene_plot.py

or if it returns an exception:
catch {exec mkdir $opt(resultdir)}

Try a search in google for "tcl shell commands" or something similar
(this is tcl, rather than ns-2 syntax).

Regards,
Ash

======================
Message: 2
Date: Sat, 29 Mar 2008 11:27:11 +0800
From: =?GB2312?B?x/q+p9Oo?= <jingle0807 at 163.com>
Subject: [ns] how to add shell script or shell command into tcl
       script.
To: ns-users <ns-users at ISI.EDU>
Message-ID: <47EDB70F.8030502 at 163.com>
Content-Type: text/plain; charset=GB2312

hi, all
I wonder to know how to add shell script or shell command into tcl script.
Thank you very much in advance.  :)

jingle



More information about the Ns-users mailing list