VMD-L Mailing List
From: Vermaas, Joshua (Joshua.Vermaas_at_nrel.gov)
Date: Mon Sep 26 2016 - 10:51:00 CDT
- Next message: sunyeping: "chain identifier change in the pdb files generated by the "solvate" and "Add Ions" plugin"
- Previous message: Darren Li: "Q=9B=9E=E5=A4=8D=EF=BC=9A__by_using_Ax?= el's HOOMD plugin, convert pdb to xml and missing bond information"
- In reply to: Axel Kohlmeyer: "Re: mkdir command in vmd"
- Next in thread: sunyeping: "Re: mkdir command in vmd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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.
-Josh
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
>
> axel.
>
>> Yeping Sun
>
- Next message: sunyeping: "chain identifier change in the pdb files generated by the "solvate" and "Add Ions" plugin"
- Previous message: Darren Li: "Q=9B=9E=E5=A4=8D=EF=BC=9A__by_using_Ax?= el's HOOMD plugin, convert pdb to xml and missing bond information"
- In reply to: Axel Kohlmeyer: "Re: mkdir command in vmd"
- Next in thread: sunyeping: "Re: mkdir command in vmd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]