[RULE] Need help with scripting Vacuum

Marco Fioretti m.fioretti at inwind.it
Sat Dec 14 16:16:52 EET 2002


On Thu, Dec 12, 2002 07:50:00 at 07:50:00AM -0800, Eugene Wong  disposable_eugene at hotmail.com  wrote:
> 
> Also, as I typed out the previous paragraphs, I thought that maybe this 
> type of script doesn't need getopt, because it would only require 1 option 
> at most, plus any other file names. Maybe we could make Vacuum require at 
> least 1 option, no matter what, so that it would make life easier for us to 
> write code that directly tries to deal with ${1}, and if there are no 
> options given, then it could just display usage & help information.
> 
> What does everybody think?

Eugene,
I agree with the suggestion to look at the /etc/init/ scripts if you
think vacuum can do with one parameter only. Another way, maybe less
complicated of getopt IIRC, is to look for the modelines script by ESR
(can't find the URL right now) and copy that tecnique.

	Let us know,
			Marco Fioretti 


_______________________________________________
Original home page of the RULE project: www.rule-project.org
Original Rule Development Site http://savannah.gnu.org/projects/rule/
Original RULE mailing list: Rule-list at nongnu.org, hosted at http://mail.nongnu.org/mailman/listinfo/rule-list




This full static mirror of the Run Up to Date Linux Everywhere Project mailing list, originally hosted at http://lists.hellug.gr/mailman/listinfo/rule-list, is kept online by Free Software popularizer, researcher and trainer Marco Fioretti. To know how you can support this archive, and Marco's work in general, please click here