Execute ls command in tkcon from a tcl script

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

How can I execute a command such as 'ls' or 'dir' through a tcl script, such that, its output is shown on the tkcon console in HyperMesh ?

 

Any help is appreciated.

 

Thank you.

Answers

  • tinh
    tinh Altair Community Member
    edited March 2017

    How can I execute a command such as 'ls' or 'dir' through a tcl script, such that, its output is shown on the tkcon console in HyperMesh ?

     

    Any help is appreciated.

     

    Thank you.

     

    actually, ls and dir are procs that invoke tcl command glob. you use glob or define dir proc in your script