run some DOS command using the “TCLeditor”

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
burnningcat
Posts: 50
Joined: Mon Jun 18, 2007 1:10 am
Location: ROMA

run some DOS command using the “TCLeditor”

Post by burnningcat »

Dear FMK,

Would you please tell me if it is possible to run some DOS command using the “TCLeditor” to run OpenSees? For example, I want to run the following DOS command:

copy D:\ openSees.exe C:\tcleditor\bin

How should I write the command in the “TCLeditor”?

Thank you very much!
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

this example could be done with file copy .. however there are other times you may want to use a shell command.

you basically want to play with the exec command.

[url]
http://wiki.tcl.tk/1039
[/url]

here is an example i use on a linux machine;

[url
http://opensees.berkeley.edu/cgi-bin/cv ... web-markup
[/url]
Post Reply