VMD-L Mailing List
From: Vermaas, Joshua (Joshua.Vermaas_at_nrel.gov)
Date: Mon Sep 26 2016 - 10:51:00 CDT
There is also a "file mkdir" command in Tcl, which behaves similarly to
a unix shell mkdir command. See
https://www.tcl.tk/man/tcl/TclCmd/file.htm for more info.
On 09/25/2016 10:09 PM, Axel Kohlmeyer wrote:
> 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
>> Yeping Sun