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?= <[EMAIL PROTECTED]> Subject: [ns] how to add shell script or shell command into tcl script. To: ns-users <ns-users@ISI.EDU> Message-ID: <[EMAIL PROTECTED]> 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