The one thing about killing using the process name is in Terminal server there may be a number of these (one or more per user) I used PSKILL in a script to first output all the processes and usernames associated with them. Then parsed that output for the current session username and grabbed the PID. THEN used PSKILL to kill that specific PID. Works better since I know the script is only trying to kill the process for that user. Ron Oglesby Senior Technical Architect RapidApp Office 312.372.7188 Mobile 815.325.7618 email roglesby@xxxxxxxxxxxx -----Original Message----- From: Paul DeHaan [mailto:wppad@xxxxxxxxx] Sent: Wednesday, November 19, 2003 12:42 PM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: OT: Script output help Not sure what version of pskill you are using, but the last couple versions let you kill the app by using either the PID (123) or the process name (something.exe). You could plug pskill in the script below to accomplish the same thing. Regards, Paul DeHaan CISSP, CCNA, CCA... Network Administrator J.M. Huber Corp. ------------> "The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers." >>> Dennis.Parker@xxxxxxxxxx 11/19/03 01:02PM >>> I'm using KILL.EXE from the some version of the resource kit (I thought it was NT, but looking at it again, doesn't appear the versions match). Pretty basic though, when ddhelp finally starts up with this application, I 'kill' it. Hope this helps. --- :WaitLonger sleep 5 kill ddhelp if errorlevel 1 goto WaitLonger --- Dennis Parker, MCSE, CCA Senior Systems Analyst Fiserv EFT 4550 SW Macadam Ave, Ste 100 Portland, Or. 97239 Direct: 503-274-6785 Fax: 503-274-6619 This e-mail is confidential and may well be legally privileged. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. To do so could violate state and Federal privacy laws. Thank you for your cooperation. Please contact me if you need assistance. -----Original Message----- From: Andrew Rogers [mailto:Andrew.Rogers@xxxxxxxxxxxxxxxxxx] Sent: Wednesday, November 19, 2003 8:59 AM To: thin@xxxxxxxxxxxxx Subject: [THIN] OT: Script output help Am looking to kill a process that's left running in published applications (naldesk.exe, that evil Novell program) and I know I can use pskill but that wants a PID. Now using qprocess I can SEE the PID, but how can I get that from the output and over to pskill? I think the FOR command could well be useful, but the help on that is, erm, almost gibberish to me :) Anyone know how I could achieve this, either with the idea above, or another, better way? Andrew --o-- ******************************************************** This Week's Sponsor - RTO Software / TScale What's keeping you from getting more from your terminal servers? Did you know, in most cases, CPU Utilization IS NOT the single biggest constraint to scaling up?! Get this free white paper to understand the real constraints & how to overcome them. SAVE MONEY by scaling-up rather than buying more servers. http://www.rtosoft.com/Enter.asp?ID=147 ********************************************************** Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm New! Online Thin Computing Magazine Site http://www.OnDemandAccess.com For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm ******************************************************** This Week's Sponsor - RTO Software / TScale What's keeping you from getting more from your terminal servers? Did you know, in most cases, CPU Utilization IS NOT the single biggest constraint to scaling up?! Get this free white paper to understand the real constraints & how to overcome them. SAVE MONEY by scaling-up rather than buying more servers. http://www.rtosoft.com/Enter.asp?ID=147 ********************************************************** Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm New! Online Thin Computing Magazine Site http://www.OnDemandAccess.com For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm ******************************************************** This Week's Sponsor - RTO Software / TScale What's keeping you from getting more from your terminal servers? Did you know, in most cases, CPU Utilization IS NOT the single biggest constraint to scaling up?! Get this free white paper to understand the real constraints & how to overcome them. SAVE MONEY by scaling-up rather than buying more servers. http://www.rtosoft.com/Enter.asp?ID=147 ********************************************************** Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm New! Online Thin Computing Magazine Site http://www.OnDemandAccess.com For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm ******************************************************** This Week's Sponsor - RTO Software / TScale What's keeping you from getting more from your terminal servers? Did you know, in most cases, CPU Utilization IS NOT the single biggest constraint to scaling up?! Get this free white paper to understand the real constraints & how to overcome them. SAVE MONEY by scaling-up rather than buying more servers. http://www.rtosoft.com/Enter.asp?ID=147 ********************************************************** Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm New! Online Thin Computing Magazine Site http://www.OnDemandAccess.com For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm