Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Return requiered to quit batch mode
Topic Summary: Closing the batch process
Created On: 23-May-2005 15:37
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 23-May-2005 15:37
User is offline View Users Profile Print this message


Björn Axenath

Posts: 1
Joined: 23-May-2005

When I execute a batch file like:
print "Hello!!!"
from the command line on Windows XP by: doors -u ... -P ... -b hello.dxl
then a new shell opens. Correctly, it contains the string "Hello!!!".
But also "Press Enter to exit DOORS." is printed in the shell and the doors process is still running. A return from my keyboard closes the window and the doors process.

How can I close Doors automatically without entering "Return"? (Halt does not help.)

Thank you very much,
Björn
Report this to a Moderator Report this to a Moderator
 25-May-2005 15:57
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Had the same problem; its the print statement. The "press enter" command is analogous to the "close" on the DXL window. If your DXL does something else (such as appending "hello" to a file) it won't stay residual and will end naturally. IIRC, "ack" and "confirm" etc. commands act like print statements when running in Batch.

I had several interactive DXL that I wanted to also have the ability to run from batch mode. That's real sticky. I ended up writing batch stubs for ack and confirm (and error and warning ...). They stick the message in a display buffer (confirm returns true, query returns zero). The end of the batch program dumps the display buffer to a report file. These DXL always realize their DBs, but only show them when not in Batch mode. The batch control program includes batch includes, includes the source DXL, invokes the main apply callback function, then calls the function that dumps the display buffer. Yuuuuuck, but it finally worked.

Its probably better to write Batch-Only DXL and avoid all user interaction such as ack, print, and DBs.

- Louie
Report this to a Moderator Report this to a Moderator
 25-May-2005 18:09
User is offline View Users Profile Print this message


Jobina Johnson

Posts: 55
Joined: 12-Sep-2002

Close out the end of your batch file with the command "c:\ exit"

-------------------------


jobina.l.johnson@boeing.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.