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 I was looking for.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"

Reply via email to