How to find out what is running at a certain time...

Soldato
Joined
21 Jun 2005
Posts
9,223
Having issues at a certain time with some servers. It's not every day the issue is happening but has happened 3 times at the same time over the last 10 days, all on different days. To the best of my knowledge nothing is scheduled to run at that time... Is there any way I can find out/see if anything is running at that time? Maybe a herp derp/simple way but for the life of me I can't think how.

Thanks
 
In linux I would set a script to repeatedly do ps -ef at around that time, and print the output to a file.

I imagine that there is a Windows equivalent of ps - ef

If not, then can you install cygwin so that you can use linux commands?
 
In linux I would set a script to repeatedly do ps -ef at around that time, and print the output to a file.

I imagine that there is a Windows equivalent of ps - ef

If not, then can you install cygwin so that you can use linux commands?

Hi mate, sorry should have said it's a Windows box. I'm not sure but I can look in to it. They are live servers not test so I'll find out however I'm doubtful I'll be allowed to install that... Doesn't hurt to ask though :) Thanks for the idea though mate.
 
If you know what time it occurs at then this batch file will log what is running and you just look thru it to find the time it occured and see what was running.

create a text file called whats_running.bat
stick this in it

@Echo off

:LOOP

@Echo ----------------------------------------- >> c:\temp\tasks_log.txt
@Echo %time% - %date% >> c:\temp\tasks_log.txt

tasklist >> c:\temp\tasks_log.txt

rem delay a bit

PING 1.1.1.1 -n 1 -w 5000 >NUL

GOTO LOOP

exit
 
Back
Top Bottom