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: Command Line Batch files Running dxl
Topic Summary:
Created On: 12-May-2007 21:04
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.
 12-May-2007 21:04
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

Hi All

I have a problem !
I run a lot of dxl scripts in batch mode from the command line.  These batch files I schedule to run using Windows scheduler.
I have come up against an issue now, in that I have a script that I want to run in the same way as above, but it needs DOORS to be open, as it relies on a Module VIEW.
So I need to have the batch file running on its own, send the username and password as usual, open DOORS interactively, and run the dxl, and close DOORS.
When I deselect the -b batch file option in the command line parameters, it tells me the username and password are not correct, even though they are still specified.

Can anyone tell me if what I need to do is possible please?

Many thanks
Lisa
Report this to a Moderator Report this to a Moderator
 14-May-2007 05:39
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Lisa,

this is only a guess, but you could try to set the desired view as default view for the batch running user.
Then at least the filter of this view should be set ?!

Another option would be to have a visible Doors session open and run the script via DXL-server (or OLE) in this open session.

Greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 14-May-2007 09:07
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

Thanks Reik very much for your response.

I did however manage to crack it in the end.

"c:\Program Files\telelogic\DOORS 7.1\bin\Doors.exe" -u "Carver, Lisa" -P "password" -D "#include <c:\Test_Progression_v3.dxl>" -data 36677@c123456

the above syntax works for me now, and I have an exit command in my script which closes DOORS afterwards.

Thank you again.
Report this to a Moderator Report this to a Moderator
 14-May-2007 22:38
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

You should not need the -data switch unless you are redirecting to a secondary database.

I'd be tempted to put the DOORS exit command in the command line and not in the DXL itself.
-D "#include <c:\Test_Progression.dxl>; exit_()".

That way your DXL will work both interactively and batch.

Alternatively, the DXL could have this at the bottom: if (batchMode) exit_().

- Louie
Report this to a Moderator Report this to a Moderator
 15-May-2007 09:05
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

Hi Louie

Thanks for your response.

I will take your advice onboard, thank you.

Lisa
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.