direct-io.hg

view 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
line source
1 #============================================================================
2 # This library is free software; you can redistribute it and/or
3 # modify it under the terms of version 2.1 of the GNU Lesser General Public
4 # License as published by the Free Software Foundation.
5 #
6 # This library is distributed in the hope that it will be useful,
7 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9 # Lesser General Public License for more details.
10 #
11 # You should have received a copy of the GNU Lesser General Public
12 # License along with this library; if not, write to the Free Software
13 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14 #============================================================================
15 # Copyright (C) 2005 XenSource Ltd
16 #============================================================================
19 XENCONSOLE = "xenconsole"
22 import xen.util.auxbin
25 def execConsole(domid):
26 xen.util.auxbin.execute(XENCONSOLE, [str(domid)])