I was hoping not to use any 3rd party tool but maybe something via ANT tasks or Java calls. One of the similar threads mentioned about 'jps' but could not get it working. Keeping it generic so that it can be used not only for windows will be a good approach.
Gilbert Rebhan wrote: > > Hi, > > > arijit wrote: >> I was thinking more of listing the current running processes in windows >> and >> then killing one of them. > > if you're runnning on windows maybe you can go via <exec> combined with > PSKILL which is part of the PTOOLS suite, formerly Sysinternals now > under the hood of Mystersoft = > > http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/PsTools.mspx > http://www.microsoft.com/technet/sysinternals/utilities/pskill.mspx > > " kill processes by name or process ID " > > never tried it myself, give it a shot. > > > Regards, Gilbert > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/how-to-get-a-process-id-from-a-spawned-task--tf3827737.html#a11056881 Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]