[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
finding the IP for eth0
From: |
John Borwick |
Subject: |
finding the IP for eth0 |
Date: |
Tue, 14 Sep 2004 11:30:18 -0400 |
User-agent: |
Mozilla Thunderbird 0.7.3 (X11/20040901) |
Hey, everybody. I hope you're doing well.
I'm trying to do the following:
control:
eth0_ip = ( ExecResult(/bin/sh -c "/usr/sbin/ifconfig eth0 |
/usr/bin/perl -lne 'print \$1 if / addr:(\S+)/'") )
It looks like cfengine gets hung up on the parentheses. How do I
1. find the IP for eth0 (for the purposes of editing ifcfg-eth0)
2. put parentheses inside ExecResult commands?
Thanks!
John
--
John Borwick
System Administrator
Wake Forest University | web http://www.wfu.edu/~borwicjh
Winston-Salem, NC, USA | GPG key ID 0x797326D5
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- finding the IP for eth0,
John Borwick <=