From owner-freebsd-questions@FreeBSD.ORG Wed Apr 16 18:41:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF2CA106564A for ; Wed, 16 Apr 2008 18:41:12 +0000 (UTC) (envelope-from freebsd@optiksecurite.com) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.freebsd.org (Postfix) with ESMTP id 8969D8FC1C for ; Wed, 16 Apr 2008 18:41:12 +0000 (UTC) (envelope-from freebsd@optiksecurite.com) MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=UTF-8; format=flowed Received: from [127.0.0.1] ([74.56.107.65]) by VL-MO-MR005.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTP id <0JZF0035DIG7KTL0@VL-MO-MR005.ip.videotron.ca> for freebsd-questions@freebsd.org; Wed, 16 Apr 2008 13:40:56 -0400 (EDT) Message-id: <48063A3C.8020403@optiksecurite.com> Date: Wed, 16 Apr 2008 13:41:16 -0400 From: FreeBSD User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) To: Artem Kuchin References: <48062B06.3060501@itlegion.ru> In-reply-to: <48062B06.3060501@itlegion.ru> X-Antivirus: avast! (VPS 080416-0, 2008-04-16), Outbound message X-Antivirus-Status: Clean Cc: "freebsd-questions@freebsd.org" Subject: Re: how to exec a process in a jail while being on the main host? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2008 18:41:12 -0000 Try `jexec JID 'command'` man jexec for more details... You can obtain the JID of your jails with the command `jls` Martin Artem Kuchin a écrit : > For example, i have an already runing jail with some JID and i am > logged in on the main host (which runs the jail). > How can i run a new process inside the jail with a known JID w/o > ssh-ing into that jail or doing a lot of strange > manupulations? > > I am asking, because i have about 20 jails running and each has a > running special control daemon which > changes a lot and often. When change occures i need then to enter each > jail as root, kill the old daemon, start the new one. > This take a lot of time and is really annoying. > > -- > Regards, > Artem > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"