Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: rcc - an uniform approach to init/rc scripts
- X-seq: zsh-users 10512
- From: Scott Anderson <ee_in_co@xxxxxxxxx>
- To: Jan Srzednicki <w@xxxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: rcc - an uniform approach to init/rc scripts
- Date: Tue, 11 Jul 2006 09:46:21 -0700 (PDT)
- 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= ;
- In-reply-to: <20060710234132.GJ75664@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Reply-to: Scott Anderson <ee_in_co@xxxxxxxxx>
(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 <w@xxxxxxxx>
To: zsh-users@xxxxxxxxxx
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@xxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author