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: 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
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.
 8-Oct-2007 14:59
User is offline View Users Profile Print this message


Max Schloss

Posts: 2
Joined: 20-Nov-2006

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
Report this to a Moderator Report this to a Moderator
 8-Oct-2007 17:44
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

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
Report this to a Moderator Report this to a Moderator
 8-Oct-2007 18:35
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

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
Report this to a Moderator Report this to a Moderator
 9-Oct-2007 17:47
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

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
Report this to a Moderator Report this to a Moderator
 11-Oct-2007 13:04
User is offline View Users Profile Print this message


Max Schloss

Posts: 2
Joined: 20-Nov-2006

thanks for the answers i'll try them out.
Report this to a Moderator Report this to a Moderator
 16-Jul-2008 23:51
User is offline View Users Profile Print this message


Ken Wriggle

Posts: 1
Joined: 13-May-2008

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.