Killing the session without exiting from the menus may have an adverse effect on the MEDITECH machine the session was attached to. (at least in a MAGIC setting) MEDITECH assigns Job Numbers in a random order. When you kill your session on the PC without exiting properly, either by exiting all menus to the Good Bye prompt or by entering an X in a menu selection box, that session will continue running on the MEDITECH machine until MEDITECH assigns a new job that number. When that job number is chosen for a new job, MEDITECH will evaluate the job to see if it does have a session open on a PC and if not, Kill the job and assign that job number to the new session. It may take several minutes before the job number is re-assigned. This could have adverse effects on the MEDITECH machine causing Non-Existent Jobs to exist on the machine.
To be safe, it is always wise to exit out of the MEDITECH session cleanly. Of course, this is just my 2 cents for the day. Thanks, Vince -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mark Cassidy Sent: Friday, February 25, 2005 1:24 PM To: [email protected] Subject: Re: [Talk] MEDITECH Terminal Status and Shutdown I use VB.NET and to force a terminal to shut down I use the command Shell("KILL -F T.exe") 'Assuming your Meditech session is T.exe This will end all Meditech connections on that P.C. You do not have to be at a menu selection. It should only be used as a last resort. DO NOT run this on a machine that can have several Meditech sessions (ie. Citrix). To determine if Meditech is already running on a P.C. Dim strTEST(5) As System.Diagnostics.Process Dim intTest As Integer strTEST = Process.GetProcessesByName("T") 'Assuming your Meditech session is T.exe intTest = strTEST.Length If intTest = 1 (or more), Medtech is running. If intTest = 0, Meditech is not running. Hope this helps. Mark Cassidy Maine Medical Center (207) 662-3944 >>> [EMAIL PROTECTED] 02/25/05 12:25 PM >>> Hello, Is there a way to make a MEDITECH terminal shut down without having to exit from all of the menus? Also, is there a way to detect if the MEDITECH terminal has been shutdown? Thanks, Gabe Smith Merle West Medical Center Information Systems 2865 Daggett Street Klamath Falls, OR 97601 [EMAIL PROTECTED] Voice: 541-885-4617 Fax: 541-885-4679 See our web page at http://www.lahey.org for a full directory of Lahey sites, staff, services and career opportunities. THIS MESSAGE IS INTENDED FOR THE USE OF THE PERSON TO WHOM IT IS ADDRESSED. IT MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW. If you are not the intended recipient, your use of this message for any purpose is strictly prohibited. If you have received this communication in error, please delete the message and notify the sender so that we may correct our records.
