![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: How to start a DXL program from console (cygwin)? Topic Summary: Created On: 8-Oct-2007 14:59 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi all,
I'd like to know if it's possible to start a DXL program out of cygwin.
If it's possible could you give a small example?
Thanks in advance
|
|
![]() |
|
![]() |
|
I believe you'd have to launch DOORS, calling the script as a parameter. So it'll open DOORS in batch mode and run the script, exiting when done if you put the "exit_" command at the end of the script.
C:\Program Files\Telelogic\DOORS_8.1\bin\doors.exe -d 36677@yourdatabasename -batch "your script path and dxl filename here" -u "yourusername" -password "yourpassword" Or however you have to call the doors executable. ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
start/wait doors -u "%Uname%" -P "%Pword%" -D "int num_sections=2;int run_break=0;bool fds_sysr=false;Folder f;f = folder \"/F - Software Requirements/%FA%\";Buffer fa = create (1);fa = \"%FA%\";Buffer path_name = create (1);path_name = \"%SAVE_PATH%\"" -b "%DXL_PATH_OUT%"
This is an example of what I use in one of my batch files where the following are variables that I declare in the batch file: Uname Pword SAVE_PATH DXL_PATH_OUT FA It's been my experience that you don't need to include the exit_ () perm as DOORS will automatically exit when the script is complete anyway. The batch file I pulled this from repeats the above statement multiple times in the batch file, chaningin the FA variable each itteration. I had to restort to this due to the size of our database and the memory leaks that are inherent to DOORS, I kept running out of memory, as this script processes every link in the database, does a fair amount of string processing (yeah I used buffers and arrays, but still didn't help much...) as well as a bunch of other crap to create some metrics that someone might glance at once in a blue moon..... ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com Edited: 8-Oct-2007 at 18:36 by Scott Boisvert |
|
![]() |
|
![]() |
|
I've observed that DOORS was not exiting after a successful completion even in batch mode. And as long as DOORS exits each time, memory from the string table is released. We're having a real problem right now with DOORS not exiting for unknown reasons which leaves a doors.exe sitting idle and burning 500MB+ of RAM on our servers. Sometimes more than one.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
thanks for the answers
i'll try them out.
|
|
![]() |
|
![]() |
|
I am on 8.3 patch 1 and have found that if you do something like this:
doors.exe "ack \"OK\"; exit_();" -u "username" -P "password" that the OK button is displayed in an infinite loop. So is any other code that you run before the exit_(). If I leave off the exit_(), the code will run once, but does not shut down DOORS |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.