VMD-L Mailing List
From: Axel Kohlmeyer (akohlmey_at_gmail.com)
Date: Sun Sep 25 2016 - 22:05:45 CDT
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"
> 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.