On 11/15/10 4:41 AM, Brian J. Murrell wrote:
> 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 "$@"That's silly. A shell variable used in a configuration file is only evaluated at compile time, not at run-time. -Tom -- Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ 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
