From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7694 invoked from network); 11 Jul 2006 16:46:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Jul 2006 16:46:40 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 50726 invoked from network); 11 Jul 2006 16:46:34 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Jul 2006 16:46:34 -0000 Received: (qmail 12749 invoked by alias); 11 Jul 2006 16:46:25 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10512 Received: (qmail 12738 invoked from network); 11 Jul 2006 16:46:25 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Jul 2006 16:46:25 -0000 Received: (qmail 49474 invoked from network); 11 Jul 2006 16:46:24 -0000 Received: from web30711.mail.mud.yahoo.com (68.142.201.249) by a.mx.sunsite.dk with SMTP; 11 Jul 2006 16:46:24 -0000 Received: (qmail 93754 invoked by uid 60001); 11 Jul 2006 16:46:21 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Pktg+grnwxPXnwX+k4s2U2F6HkyJDCLf0UgV0PSVe4a5i0GG2Ryn/1veTRFWx2S/mlYavAvChMJQ54eQb0TAB098mQ3PjFYk/NF/nx1148Pg1t/nqSvAGUascd2IOrXs4qhhu3uVRJW2Q2yuMWCw80c8uf+KV8k9r16tdkSGbNo= ; Message-ID: <20060711164621.93752.qmail@web30711.mail.mud.yahoo.com> Received: from [64.207.50.22] by web30711.mail.mud.yahoo.com via HTTP; Tue, 11 Jul 2006 09:46:21 PDT Date: Tue, 11 Jul 2006 09:46:21 -0700 (PDT) From: Scott Anderson Reply-To: Scott Anderson Subject: Re: rcc - an uniform approach to init/rc scripts To: Jan Srzednicki , zsh-users@sunsite.dk In-Reply-To: <20060710234132.GJ75664@europa.expro.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii (Sorry for the top post, Yahoo! Mail beta does not quote nicely yet) When I source this script, I get the following error: > . zsh_rcc zsh_rcc:342: command not found: compdef Is compdef now obsolete? Scott ----- Original Message ---- From: Jan Srzednicki To: zsh-users@sunsite.dk Sent: Monday, July 10, 2006 5:41:32 PM Subject: rcc - an uniform approach to init/rc scripts Hello, After being quite tired of different init script styles on different operating systems or distributions, I have decided to write a script that would integrate all of their types into one simple command. Now it has becomed quite featurable, so I decided to share it with The Community. ;) I have decided to use the name 'rcc', as it appears to be unused in unix environment, yet is short and easy to type. The utility is very simple to use, eg. in the form "rcc service start". The real tough job was to get completion working with several different script types, which are parsed and rcc tries to determine what commands does given script accept. The thing has been tested on FreeBSD (with both old and new style scripts), Debian and Gentoo; will probably work on any SysV init style Linux distribution, but of course patches are welcome. Enough talking, here it is: http://wrzask.pl/files/zsh_rcc (all the instalation and usage information is in the comments) Feedback is welcome. ;) -- Jan Srzednicki w@expro.pl