jid and jname are numberic by default why? Can we change it ?

Philip M. Gollucci pgollucci at gmail.com
Fri Jan 27 17:37:57 UTC 2012


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 at 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20120127/7a3a8431/signature.pgp


More information about the freebsd-current mailing list