help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: is there any limitation on string lengths ?


From: Mark . Burgess
Subject: Re: is there any limitation on string lengths ?
Date: Tue, 31 Oct 2000 11:26:23 +0100 (MET)

On 31 Oct, Jordi.Renye@upc.es wrote:
> 
> Hi gurus,
> 
> I like cfengine very much. I would like to kill old processes (yesterday):
> processes with a month entry
> in 'ps'  output and processes with time past to actual time in 'ps' output.
> . I kill the processes with a month
> entry with a script in "configuration library" at Oslo Web
> (www.iu.hio.no/cfengine) For example:
> 
>> date
> Tue Oct 31 11:14:03 MET 2000
>> ps -ef
>     user1     0     0  0   15:27 ?        0:01 procuser1
>     user2     1     0  0    11:50 ?        7:11 procuser2
> 
> In this example, I kill "procuser1" and "procuser2" because they were
> created yesterday.
> 
> control:
> 
>      string = ( "exec /usr/local/lib/getregex.pl" )
> 
>         actionsequence =
>           (
>             processes
>           )
>         Inform = ( on )
> 
> processes:
> 
> any::
>       SetOptionString " -ef "
> 
>       "$(string)"
> 
> 
> Problem is that "cfengine1-5-4" on solaris 2.7 gives a"segmentation fault",
> in string.
> I suppose because the length of string.
> 
> Anyone can help me?
> Perhaps, it is more natural, use a shell script, for this task.
> 
> Many thanks in advanced, and sorry for my english.
> 
> Jordi Renye
> jordir@fib.upc.es


It might help to upgrade to cfengine 1.6.0.a13 whihc you can get from
ftp.iu.hio.no/pub/cfengine

best wishes,
Mark


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

[Prev in Thread] Current Thread [Next in Thread]