direct-io.hg

annotate tools/python/xen/xm/console.py @ 7312:713328270fb3

Bring out the common console-handling code from main.py and create.py.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Tue Oct 11 15:01:43 2005 +0100 (2005-10-11)
parents
children ad22c711ccb7
rev   line source
emellor@7312 1 #============================================================================
emellor@7312 2 # This library is free software; you can redistribute it and/or
emellor@7312 3 # modify it under the terms of version 2.1 of the GNU Lesser General Public
emellor@7312 4 # License as published by the Free Software Foundation.
emellor@7312 5 #
emellor@7312 6 # This library is distributed in the hope that it will be useful,
emellor@7312 7 # but WITHOUT ANY WARRANTY; without even the implied warranty of
emellor@7312 8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
emellor@7312 9 # Lesser General Public License for more details.
emellor@7312 10 #
emellor@7312 11 # You should have received a copy of the GNU Lesser General Public
emellor@7312 12 # License along with this library; if not, write to the Free Software
emellor@7312 13 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
emellor@7312 14 #============================================================================
emellor@7312 15 # Copyright (C) 2005 XenSource Ltd
emellor@7312 16 #============================================================================
emellor@7312 17
emellor@7312 18
emellor@7312 19 XENCONSOLE = "xenconsole"
emellor@7312 20
emellor@7312 21
emellor@7312 22 import xen.util.auxbin
emellor@7312 23
emellor@7312 24
emellor@7312 25 def execConsole(domid):
emellor@7312 26 xen.util.auxbin.execute(XENCONSOLE, [str(domid)])