closing the cmd.exe window after running OpenSEES

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
MohsenAmjadEQEng
Posts: 8
Joined: Tue Nov 20, 2012 6:17 am
Location: NBG Construction Company

closing the cmd.exe window after running OpenSEES

Post by MohsenAmjadEQEng »

Dear Silvia,

Salam,

I have a bit problem with running of OpenSEES. When I am running my code, in the end the cmd.exe window does not stay on the my laptop's screen and it is suddenly closed. I am not aware why it occurs. If you or any one else has had same problem and solved it, I would be very thankful to help me.

Thanks a lot,
Mohsen
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: closing the cmd.exe window after running OpenSEES

Post by fmk »

you will need to find where the problem is in the script. try adding 2 lines to the code near the start of the file.
and then keep moving these 2 lines further down the script until you find the problem, i.e. your window goes away.

puts "GOT HERE"
exit
MohsenAmjadEQEng
Posts: 8
Joined: Tue Nov 20, 2012 6:17 am
Location: NBG Construction Company

Re: closing the cmd.exe window after running OpenSEES

Post by MohsenAmjadEQEng »

fmk wrote:
> you will need to find where the problem is in the script. try adding 2
> lines to the code near the start of the file.
> and then keep moving these 2 lines further down the script until you find
> the problem, i.e. your window goes away.
>
> puts "GOT HERE"
> exit

Dear Frank,

Thank you for your reply.

My code is OK and I get a right response. Before you say me, I used "after" command to find the error line.

However, I still have same problem. If my code faces with a small unwanted mistake, I should spend much time to find the error line, because the cmd.exe window is closed and I can't see the error place.

I do not know why? :roll: Maybe it is due to a virus sensitive to exe programs, or my mistake in installing ActiveTcl!

Thank You,
Mohsen
MohsenAmjadEQEng
Posts: 8
Joined: Tue Nov 20, 2012 6:17 am
Location: NBG Construction Company

Re: closing the cmd.exe window after running OpenSEES

Post by MohsenAmjadEQEng »

Dear Frank,

Eventually, I found the cause of the problem :D . As I discovered (!), the "stop.exe" file, which is an executable file, must be put at the sub-folder of "bin" i.e. "C:\tcleditor\bin" beside the "OpenSees.exe" file. Although, I do not know that how "stop.exe" works exactly, I just found that it holds the cmd.exe window and I can easily find the error line or other probable unwanted mistakes when writing the TCL code.

I hope this helps other guys faced with the same problem.
songwang
Posts: 16
Joined: Mon Feb 18, 2013 11:25 am
Location: Missouri University of Science and Technology

Re: closing the cmd.exe window after running OpenSEES

Post by songwang »

MohsenAmjadEQEng wrote:
> Dear Frank,
>
> Eventually, I found the cause of the problem :D . As I discovered (!), the
> "stop.exe" file, which is an executable file, must be put at the
> sub-folder of "bin" i.e. "C:\tcleditor\bin" beside the
> "OpenSees.exe" file. Although, I do not know that how
> "stop.exe" works exactly, I just found that it holds the cmd.exe
> window and I can easily find the error line or other probable unwanted
> mistakes when writing the TCL code.
>
> I hope this helps other guys faced with the same problem.


Dear Mohsen:

I encountered the same problem as yours. However, I cannot find the stop.exe file in my opensees package. The files I have are only opensees.exe and tcl folder. I search the tcl folder and still haven't found the stop.exe file. Could you please tell me where you find that file exactly?

Also, you mentioned you use "after" command in opensees to find the error, but I haven't found any "after" command in opensees manual. Could you please show me a example about how to check the errors with your "after" command?

Thanks very much.

Best regards,

Song
Post Reply