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: Sending a message to a specific user
Topic Summary: Using terminal services to send a message to a user.
Created On: 28-Feb-2008 14: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.
 28-Feb-2008 14:37
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Please try the attached.

This nearly works...

The main issue I can see is having the necessary permissions to run the commands.

It uses msg.exe to send a message to a specific computer. This is available if the server has terminal services and is also available on XP machines.

It calls dbadmin.exe to get the name of the computer the user is logged onto.
This will probably not be available on your client and you may have to copy it from the server to the doors bin directory.

An alternative to using dbadmin is to query flexlm, but this was found to be unreliable here where we have mutliple pools of licenses and many doors databses.

-------------------------
Tony Goodman
http://www.smartdxl.com

Edited: 28-Feb-2008 at 14:49 by Tony Goodman
Report this to a Moderator Report this to a Moderator
 28-Feb-2008 22:26
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Pretty clever. I notice, however, that 'user' means 'logged in user' and doesn't mean 'DOORS user'; I notice you should spell out the path to 'dbadmin.exe' perhaps like this:

string DOORSHome = getenv("DOORSHOME")
command = DOORSHome "bin\\dbadmin.exe -d " DATABASE " -userlist"

... and I noice the system32wait_ command doesn't seem to work on my system, and when I send a 'msg' to another computer I get 'Access is denied' errors, no doubt due to the domineering 'DogBert' over in IT. You might want to check the returned error to see if the message was actually delivered.

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