I am working on script to kill a process if it have been running for 45 minutes or more.
I am using a pstool called pslist to gather the data on the process. This out put looks like: C:\Tivoli\lcf\bin\w32-ix86\tools>pslist EXCEL PsList 1.23 - Process Information Lister Copyright (C) 1999-2002 Mark Russinovich Sysinternals - www.sysinternals.com Process information for CRP-DAY1-M73183: Name Pid Pri Thd Hnd Mem User Time Kernel Time Elapsed Time EXCEL 4060 8 4 182 15640 0:00:00.190 0:00:00.220 0:11:22.721 C:\Tivoli\lcf\bin\w32-ix86\tools> I started to build my array by doing: @temparry = `"$lcf_tools\\pslist EXCEL"`; foreach $temp (@temparray){ ($name,$pid,$pri,$thd,$hnd,$Mem,$usertime,$kerneltime,$elapsedtime) = split(" ",$temp); This is all wrong though, how I skip down to the line beginning with EXCEL to start build my array. Anthony J Segelhorst Enterprise Systems Management Team Email: [EMAIL PROTECTED] ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs SkyScan service._______________________________________________________________ Note: Please update your email address for this user to reflect the new MeadWestvaco Corporation. MeadWestvaco employee email addresses are in the format of [EMAIL PROTECTED] This electronic message contains information from MeadWestvaco Corporation or subsidiary companies, which may be confidential, privileged or otherwise protected from disclosure. The information is intended to be used solely by the recipient(s) named. If you are not an intended recipient, be aware that any review, disclosure, copying, distribution or use of this transmission or its contents is prohibited. If you have received this transmission in error, please notify MeadWestvaco immediately at [EMAIL PROTECTED] _______________________________________________________________________