0

I had many programs opened and was typing a message in my web browser and suddenly a window asking me something popped up. I think I was in the middle of typing the word "for" but whatever button I hit seemed to be the confirmation to shutdown the computer. Is there a way to find which program caused this and prevent it in the future? I have a hunch it was JDownloaders fault.

I'm using Windows 7.

2
  • What OS are you using?
    – Indrek
    Commented Oct 8, 2012 at 20:13
  • It would be helpful if you tell us what operating system you are using. FreeBSD? Windows 7? Gentoo Linux? Haiku OS? Commented Oct 8, 2012 at 20:13

2 Answers 2

4

You could try examining the logs around the time of shut down and see if you can spot anything.

To figure out when your PC was last shut down, you can simply open up Event Viewer, head into the Windows Logs -> System log, and then filter by Event ID 6006, which indicates that the event log service was shut down—one of the last things that happens before a shutdown.

You might be able to see what did it, though I'm not sure if such things are logged.

As an aside it is sometimes possible to abort a shutdown with (from the commandline)

shutdown -a

(but you have to be quick)

-2

You may (depending on your distro) be able to see some form of log in /var/log/{messages,system} or, if as you suspect it was an app of yours running in the background that did it, in your ~/.xsession-errors.

But as a generic rule such events don't get logged.

3
  • 1
    Good luck with your guess ;o) About OS... Commented Oct 8, 2012 at 20:09
  • 1
    OP specified he's using Windows 7, so the advice in this answer isn't really applicable.
    – Indrek
    Commented Oct 8, 2012 at 20:30
  • True that. But he specified that after my post.
    – tink
    Commented Oct 8, 2012 at 22:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .