On Sat, Oct 27, 2007 at 09:57:00AM -0700, Tom Eastep wrote: > I realized last night that running Perl scripts in a child is unsatisfactory > unless the child is persistent. And even if the child were persistent, the > script couldn't do things like add rules that use matches which Shorewall > doesn't support directly (by directly calling Shorewall::Chains::add_rule()).
Oh yeah. At least one of us is paying attention. > e) The script includes an implicit "package Shorewall::User;". Can you do that to the regular extension scripts too? I anticipate that the "normal" way to use this will be to write all your code in the initdone(?) script (or suck it in there via 'use') and just call functions using the single-line variant, so you'd want them all to be in the same package. Also, while we're on the subject, please stick: unshift @INC, @config_dirs; somewhere early in the compiler, so that 'use' searches them. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
