VMD-L Mailing List
From: Axel Kohlmeyer (akohlmey_at_gmail.com)
Date: Sun Sep 25 2016 - 22:05:45 CDT
- Next message: Darren Li: "by using Axel's HOOMD plugin, convert pdb to xml and missing bond information"
- Previous message: sunyeping: "mkdir command in vmd"
- In reply to: sunyeping: "mkdir command in vmd"
- Next in thread: Vermaas, Joshua: "Re: mkdir command in vmd"
- Reply: Vermaas, Joshua: "Re: mkdir command in vmd"
- Maybe reply: sunyeping: "Re: mkdir command in vmd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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.
- Next message: Darren Li: "by using Axel's HOOMD plugin, convert pdb to xml and missing bond information"
- Previous message: sunyeping: "mkdir command in vmd"
- In reply to: sunyeping: "mkdir command in vmd"
- Next in thread: Vermaas, Joshua: "Re: mkdir command in vmd"
- Reply: Vermaas, Joshua: "Re: mkdir command in vmd"
- Maybe reply: sunyeping: "Re: mkdir command in vmd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]