From: sunyeping (sunyeping_at_aliyun.com)
Date: Tue Sep 27 2016 - 22:05:23 CDT

Thank your for your help!
Yeping Sun------------------------------------------------------------------From:Axel Kohlmeyer <akohlmey_at_gmail.com>Time:2016 Sep 26 (Mon) 11:05To:孙业平 <sunyeping_at_aliyun.com>Cc:vmd-l <vmd-l_at_ks.uiuc.edu>Subject:Re: vmd-l: mkdir command in vmd
On Sun, Sep 25, 2016 at 10:02 PM, sunyeping <sunyeping_at_aliyun.com> wrote:
> Dear all,
>
> In vmd console I can use the "mkdir" command without any problem, but why it
> gives the error message:
>
> invalid command name "mkdir"
>
> when I put "mkdir" in a tcl script?

because "mkdir" is not a Tcl command. on the vmd command prompt, any
unrecognized command is forwarded to the shell.
however, the correct way to call an external executable is using the
"exec" Tcl command, i.e. "exec mkdir"

see: https://www.tcl.tk/man/tcl8.5/TclCmd/exec.htm

axel.

>
> Yeping Sun

-- 
Dr. Axel Kohlmeyer  akohlmey_at_gmail.com  http://goo.gl/1wk0
College of Science & Technology, Temple University, Philadelphia PA, USA
International Centre for Theoretical Physics, Trieste. Italy.