help-cfengine@gnu.org
[Top] [All Lists]

Re: Defining a Class based on ShellCommand Output or No Output

Subject: Re: Defining a Class based on ShellCommand Output or No Output
From: "Brian E. Seppanen"
Date: Fri, 5 Aug 2005 14:54:52 -0400 EDT
On Fri, 5 Aug 2005, Ed Brown wrote:

On Fri, 2005-08-05 at 11:45, Brian E. Seppanen wrote:

If I run that on the command line it doesn't work,

I hope you meant to say it DOES work from the commandline, else why
would you expect it to work in a script, unless I misunderstand you.
But doing a 'netstat -an' and grepping for 898 could be matching other
places, that's why I used '-ln' in my suggestion, which, on linux
anyway, only shows 'LISTEN'ing ports, not every connection and open
socket under the sun.  Also, I would try it without the qualifying
"any::".

I did mean that it does work from the command line. Those are good suggestions, I'll verify the data.


Brian Seppanen
608.826.1464


_______________________________________________
Help-cfengine mailing list
Help-cfengine@xxxxxxx
http://lists.gnu.org/mailman/listinfo/help-cfengine

<Prev in Thread] Current Thread [Next in Thread>