From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 31 Jan 2005 17:27:44 +0200 From: "Dmytro O. Redchuk" To: community@altlinux.ru Subject: Re: [Comm] =?koi8-u?B?09DJ08/LINrB0NXdxc7O?= =?koi8-u?B?INnIINPF0tfJ08/X?= Message-ID: <20050131152744.GE3379@ldc.net> Mail-Followup-To: community@altlinux.ru References: <41FBB434.6050001@voliacable.com> <200501291820.11375.kastelli@smtp.ru> <20050131073312.GC3379@ldc.net> <9716bc8f050131070768ea30f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-u Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9716bc8f050131070768ea30f@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jan 2005 15:27:59 -0000 Archived-At: List-Archive: List-Post: On Mon, Jan 31, 2005 at 06:07:02PM +0300, Pavel Usischev wrote: > > chkconfig --list | grep `runlevel|cut -d' ' -f2`:on | cut -f 1 | while read serv; do service $serv status; done > > Покажет только сервисы, которые сделаны chkconfig on. Если при > chkconfig someservice off сделано service someservice start, этого не > будет видно. :-) Правильно. Модифицируется легко: chkconfig --list | cut -s -d' ' -f 1 | while read serv; do service $serv status; done > -- > С уважением, > Павел Усищев -- _,-=._ /|_/| `-.} `=._,.-=-._., @ @._, `._ _,-. ) _,.-' ` G.m-"^m`m' Dmytro O. Redchuk