Re: jls usage

2013-07-14 Thread Shane Ambler
On 13/07/2013 18:24, Frank Leonhardt wrote: Next question: How do you kill a PR you've changed your mind about? just submit a follow up requesting that it be closed as the fix has been applied. ___ freebsd-questions@freebsd.org mailing list http:

Re: jls usage

2013-07-13 Thread Fbsd8
Teske, Devin wrote: On Jul 11, 2013, at 6:19 PM, Fbsd8 wrote: In a .sh script I'm trying to get the jid for a single jail using this code jid=`jls -j jailname | cut -f 1- | awk '{print $1}'` Looks a little over complicated... why not just.. jls -j jailname jid Thanks Devin. Thats what

Re: jls usage

2013-07-13 Thread Frank Leonhardt
On 13/07/2013 05:12, Shane Ambler wrote: On 13/07/2013 01:26, Frank Leonhardt wrote: Okay - answering my own question and solved... It's a bug (or is that a feature?). In /etc/rc.d/jail line 647 it currently reads: eval ${_setfib} jail ${_flags} -i ${_rootdir} ${_hostname} \

Re: jls usage

2013-07-12 Thread Shane Ambler
On 13/07/2013 01:26, Frank Leonhardt wrote: Okay - answering my own question and solved... It's a bug (or is that a feature?). In /etc/rc.d/jail line 647 it currently reads: eval ${_setfib} jail ${_flags} -i ${_rootdir} ${_hostname} \ \"${_addrl}\" ${

Re: jls usage

2013-07-12 Thread markham breitbach
On 13-07-12 9:56 AM, Frank Leonhardt wrote: > On 12/07/2013 16:32, Frank Leonhardt wrote: >> I've tried using the actual jail name, and the hostname to be sure - nothing >> - and on >> checking (jls -v) I'm somehow ending up with the Name being the same as the >> ID. I just >> put this down to a

Re: jls usage

2013-07-12 Thread Frank Leonhardt
On 12/07/2013 16:32, Frank Leonhardt wrote: I've tried using the actual jail name, and the hostname to be sure - nothing - and on checking (jls -v) I'm somehow ending up with the Name being the same as the ID. I just put this down to a quirk/bug (it's there in 8.2-9) but it sounds like it's not

Re: jls usage

2013-07-12 Thread Frank Leonhardt
I've tried using the actual jail name, and the hostname to be sure - nothing - and on checking (jls -v) I'm somehow ending up with the Name being the same as the ID. I just put this down to a quirk/bug (it's there in 8.2-9) but it sounds like it's not an issue for anyone else. I'm defining them

Re: jls usage

2013-07-12 Thread Frank Leonhardt
On 12/07/2013 15:20, Teske, Devin wrote: On Jul 12, 2013, at 2:35 AM, Frank Leonhardt wrote: On 12/07/2013 02:33, Teske, Devin wrote: On Jul 11, 2013, at 6:19 PM, Fbsd8 wrote: In a .sh script I'm trying to get the jid for a single jail using this code jid=`jls -j jailname | cut -f 1- | awk

Re: jls usage

2013-07-12 Thread Teske, Devin
On Jul 12, 2013, at 2:35 AM, Frank Leonhardt wrote: > On 12/07/2013 02:33, Teske, Devin wrote: >> On Jul 11, 2013, at 6:19 PM, Fbsd8 wrote: >> >>> In a .sh script I'm trying to get the jid for a single jail using this code >>> >>> jid=`jls -j jailname | cut -f 1- | awk '{print $1}'` >>> >> Loo

Re: jls usage

2013-07-12 Thread Frank Leonhardt
On 12/07/2013 02:33, Teske, Devin wrote: On Jul 11, 2013, at 6:19 PM, Fbsd8 wrote: In a .sh script I'm trying to get the jid for a single jail using this code jid=`jls -j jailname | cut -f 1- | awk '{print $1}'` Looks a little over complicated... why not just.. jls -j jailname jid I've ne

Re: jls usage

2013-07-11 Thread Colin House
On 12/07/2013 11:19 AM, Fbsd8 wrote: In a .sh script I'm trying to get the jid for a single jail using this code jid=`jls -j jailname | cut -f 1- | awk '{print $1}'` The first line output by jls is a title line which the cut command is suppose to cut out so the first field on line 2 gets select

Re: jls usage

2013-07-11 Thread Teske, Devin
On Jul 11, 2013, at 6:19 PM, Fbsd8 wrote: > In a .sh script I'm trying to get the jid for a single jail using this code > > jid=`jls -j jailname | cut -f 1- | awk '{print $1}'` > Looks a little over complicated... why not just.. jls -j jailname jid -- Devin > The first line output by jls is

jls usage

2013-07-11 Thread Fbsd8
In a .sh script I'm trying to get the jid for a single jail using this code jid=`jls -j jailname | cut -f 1- | awk '{print $1}'` The first line output by jls is a title line which the cut command is suppose to cut out so the first field on line 2 gets selected by the awk command. This is not w