[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 


_______________________________________________
Rule Project HOME PAGE:  http://www.rule-project.org/en/
Rule Development Site:   http://savannah.gnu.org/projects/rule/
Rule-list at nongnu.org
http://mail.nongnu.org/mailman/listinfo/rule-list



More information about the Rule-list mailing list