This is a discussion on Re: pfile start script within the IPFilter forums, part of the System Security and Security Related category; --On Tuesday, July 06, 2004 12:05 AM +1000 Darren Reed <darrenr@reed.wattle.id.au> wrote: > ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--On Tuesday, July 06, 2004 12:05 AM +1000 Darren Reed <darrenr@reed.wattle.id.au> wrote: > In some email I received from Hans Werner Strube, sie wrote: >> Carson Gaspar wrote: >> > Or you can do it in (POSIX) shell: >> > >> > carson:gandalf 0 $ OIFS="${IFS}" IFS="${IFS}:"; ls hostname.* | while >> > read intf alias; do if [ -z "${alias}" ]; then echo $intf; fi; done; >> > IFS="${OIFS}" >> > hostname.foo0 >> >> Wouldn't the following simplification of S10pfil be sufficient? > > No. sed is in /usr/bin and /usr may not be mounted when S10pfil runs. Which is why my example was in shell. And it avoids a fork/exec (always a good thing to try and do). -- Carson |