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 ([email protected]) 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.
signature.asc
Description: OpenPGP digital signature
