On Mon, 2010-11-15 at 07:36 -0500, Brian J. Murrell wrote: > > I could probably do something deterministic like: > > C_IF_IP=$(if <running on remote machine>; then > /sbin/shorewall-lite call find_first_interface_address > <interface> > else > ssh gw "/sbin/shorewall-lite call find_first_interface_address > <interface>")
FWIW, in practise the following in params works:
on_remote() {
if [ -f /etc/shorewall-lite/vardir ]; then
bash -c "$@"
else
ssh gw "$@"
fi
}
C_IF_IP=$(on_remote "/sbin/shorewall-lite call find_first_interface_address
eth0.1")
It would be nice to see that included generically in the shorewall
framework I think.
b.
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________ Shorewall-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
