From: Axel Kohlmeyer (
Date: Sun Sep 25 2016 - 22:05:45 CDT

On Sun, Sep 25, 2016 at 10:02 PM, sunyeping <> 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
College of Science & Technology, Temple University, Philadelphia PA, USA
International Centre for Theoretical Physics, Trieste. Italy.