ia64/xen-unstable

changeset 7327: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 c5553e06a8bc
children 4e335372ace8
files tools/python/xen/xm/console.py
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tools/python/xen/xm/console.py	Tue Oct 11 15:01:43 2005 +0100
     1.3 @@ -0,0 +1,26 @@
     1.4 +#============================================================================
     1.5 +# This library is free software; you can redistribute it and/or
     1.6 +# modify it under the terms of version 2.1 of the GNU Lesser General Public
     1.7 +# License as published by the Free Software Foundation.
     1.8 +#
     1.9 +# This library is distributed in the hope that it will be useful,
    1.10 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.11 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.12 +# Lesser General Public License for more details.
    1.13 +#
    1.14 +# You should have received a copy of the GNU Lesser General Public
    1.15 +# License along with this library; if not, write to the Free Software
    1.16 +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.17 +#============================================================================
    1.18 +# Copyright (C) 2005 XenSource Ltd
    1.19 +#============================================================================
    1.20 +
    1.21 +
    1.22 +XENCONSOLE = "xenconsole"
    1.23 +
    1.24 +
    1.25 +import xen.util.auxbin
    1.26 +
    1.27 +
    1.28 +def execConsole(domid):
    1.29 +    xen.util.auxbin.execute(XENCONSOLE, [str(domid)])