All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dan Magenheimer" <dan.magenheimer@oracle.com>
To: James Harper <james.harper@bendigoit.com.au>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: RE: Domid for just created domain?
Date: Sat, 31 May 2008 08:06:30 -0600	[thread overview]
Message-ID: <20080531080630500.00000003600@djm-pc> (raw)
In-Reply-To: <001f01c8c2f7$c5d497f0$cec8a8c0@int.sbss.com.au>

[-- Attachment #1: Type: text/plain, Size: 1194 bytes --]

Thanks!  I hadn't realized that xenstore-ls
and xenstore-list were different so I was using:

# xenstore-ls | grep domid | tail -1 | \
 sed 's/.*\([0-9][0-9]*\).*/\1/'

but

# xenstore-list | tail -1

is even better!

> -----Original Message-----
> From: James Harper [mailto:james.harper@bendigoit.com.au]
> Sent: Saturday, May 31, 2008 2:25 AM
> To: dan.magenheimer@oracle.com; xen-devel@lists.xensource.com
> Subject: RE: [Xen-devel] Domid for just created domain?
> 
> 
> xenstore-list /local/domain
> And just get the last line or grep by name
> 
> -----Original Message-----
> From: "Dan Magenheimer"<dan.magenheimer@oracle.com>
> Sent: 31/05/08 1:04:01 PM
> To: "Xen-Devel (E-mail)"<xen-devel@lists.xensource.com>
> Subject: [Xen-devel] Domid for just created domain?
> 
> Is there any easy way in a shell script to find out the
> domid of "the domain I just created" with xm create?
> 
> ===================================
> Thanks... for the memory
> I really could use more / My throughput's on the floor
> The balloon is flat / My swap disk's fat / I've OOM's in store
> Overcommitted so much
> (with apologies to the late great Bob Hope)
> 
> 

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

  reply	other threads:[~2008-05-31 14:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-31  8:25 Domid for just created domain? James Harper
2008-05-31 14:06 ` Dan Magenheimer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-05-31  3:01 Dan Magenheimer
2008-05-31  4:20 ` Luke S Crawford

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080531080630500.00000003600@djm-pc \
    --to=dan.magenheimer@oracle.com \
    --cc=james.harper@bendigoit.com.au \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.