From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NcTnp-0005Uy-N9 for garchives@archives.gentoo.org; Wed, 03 Feb 2010 01:13:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DF898E0D85; Wed, 3 Feb 2010 01:12:02 +0000 (UTC) Received: from mail2.pcorp.com.au (mail2.pcorp.com.au [150.101.72.19]) by pigeon.gentoo.org (Postfix) with ESMTP id EF8AFE0D85 for ; Wed, 3 Feb 2010 01:12:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail2.pcorp.com.au (Postfix) with ESMTP id 39633107406D for ; Wed, 3 Feb 2010 10:42:00 +0930 (CST) X-Virus-Scanned: amavisd-new at mail2.pcorp.com.au Received: from mail2.pcorp.com.au ([127.0.0.1]) by localhost (mail2.pcorp.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VvEnPPGZosuc; Wed, 3 Feb 2010 10:41:59 +0930 (CST) Received: from [172.16.0.52] (unknown [172.16.0.52]) by mail2.pcorp.com.au (Postfix) with ESMTP id B9F2F107406C for ; Wed, 3 Feb 2010 10:41:59 +0930 (CST) Subject: Re: [gentoo-user] Gracefully shut down program by request through ssh? From: Iain Buchanan To: gentoo-user@lists.gentoo.org In-Reply-To: <5bdc1c8b1002021612k130ddaefl4ccbf8ae37c836fb@mail.gmail.com> References: <5bdc1c8b1002021612k130ddaefl4ccbf8ae37c836fb@mail.gmail.com> Content-Type: text/plain; charset="ISO-8859-1" Date: Wed, 03 Feb 2010 10:40:55 +0930 Message-ID: <1265159455.3995.25.camel@localhost> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 Content-Transfer-Encoding: 7bit X-Archives-Salt: b2329bae-c405-474e-925f-14e12d209de6 X-Archives-Hash: bda0f269a7df57b247031f6bad458af7 On Tue, 2010-02-02 at 16:12 -0800, Mark Knecht wrote: > Hi, > I was running VMWare and the program inside of Windows has crashed. > (Or maybe Windows crashed or maybe VMWare crashed - I cannot tell.) > > Gentoo is still alive and I can log in and look around but the > mouse on that computer but its mouse is frozen so I cannot do anything > at its screen. It seems the keyboard is dead also. So can you do things once logged in? Which screen are you talking about? Sounds like you're host is locked up, not just the guest? > top says there's nothing going on. No CPU cycles at all. > > Is there a way for me to ask Linux to talk to VMWare and see if it > can shut itself down before I hit the reset button? as in "tell VMWare to do a windows shutdown"? Not that I'm aware of. killall -15 vmware will send the SIGTERM to all vmware named processes. (You may need to use vmware-workstation, or just use ps to get the PID). If that doesn't work, follow up with a killall -9 vmware Then if you're still stuck, gnome-session-save with either --logout or --force-logout should log you out nicely. If that gets stuck, try kill -15 -1 from your user login (not root) to kill all your processess. Again, maybe a kill -9 -1 is required. It will log you out of the ssh session. If that fails (as you can tell I've done this before) try an acpi shutdown. If that fails, use the magic SysRq, but I don't think you'll need to go that far since you can ssh in. -- Iain Buchanan Simon: "My God - you're like a trained ape. Without the training." --Episode #7, "Jaynestown"