Date: Fri, 27 Jan 2012 17:08:13 +0000 From: "Philip M. Gollucci" <pgollucci@gmail.com> To: current@FreeBSD.org Cc: Daniel Shafaf <danielsh@apache.org>, Scott Sanders <Ssanders@taximagic.com> Subject: jid and jname are numberic by default why? Can we change it ? Message-ID: <4F22D9FD.10502@p6m7g8.com>
index | next in thread | raw e-mail
[-- Attachment #1 --]
All,
$ jls -nq | tail -1 | xargs -n1 | egrep '^(name|jid)='| xargs
jid=17 name=17
$ jls
JID IP Address Hostname Path
3 192.168.2.38 sid.dca1.rws /sid
17 192.168.2.41 jubilee.dca1.rws /jubilee
# jubilee/chef
jail_jubilee_hostname="jubilee.dca1.rws"
jail_jubilee_ip="192.168.2.41"
jail_jubilee_ip_multi0="192.168.2.42"
jail_jubilee_interface="bge1"
jail_jubilee_rootdir="/jubilee"
jail_jubilee_devfs_enable="YES"
From jexec(8):
DESCRIPTION
The jexec utility executes command inside the jail identified by
its jid or name.
This works, but kind of defeats the point --
$ sudo jexec `jls |grep sid |awk '{print $1}'` /bin/bash
--
------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354
Member, Apache Software Foundation
Committer, FreeBSD Foundation
Consultant, P6M7G8 Inc.
Director Operations, Ridecharge Inc.
Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iD8DBQFPItn/dbiP+9ubjBwRAn3xAJ9EsaWaIo98D07cwFTqaJrfpFXFmwCeKaZL
j8m+ZXMchnz31KttOVr/8zc=
=pTqu
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F22D9FD.10502>
