help-cfengine
[Top][All Lists]
Advanced

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

Re: max. length of line in cfengine script ?


From: Mark . Burgess
Subject: Re: max. length of line in cfengine script ?
Date: Tue, 11 Feb 2003 19:15:18 +0100 (MET)

Hei Yves, this is a lex error. Use flex.

M


On 11 Feb, Yves wrote:
> Hello,
> 
> I tried to make a long entry in crontab (a dirty one, I know)
> 
> AppendIfNoSuchLine "0 2 * * *  umask 033;cd /var/adm;if test -s amdlog; then 
> cp -pf amdlog amdlog.old; cp /dev/null amdlog;ps -ef | grep 
> /usr/local/sbin/amd | grep -v grep | awk '{print $2}' | xargs kill -HUP 
> >/dev/null; fi"
> 
> the following message appears by parsing the script:
> 
>       Import file cf.newinst
>       LEX Error: input string too long to fit in yywtext[].
>            Increase the array size by defining YYLMAX to be a higher value
> 
> There are ca. 200 characters in my line above. How many character are allowed 
> in a line by default ?
> Where can I increase the value ? ...a new compilation is necessary, I 
> think... 
> 
> any hints ?
> 
> Gruß Yves
> 
>  Y99@gmx.de am 11.02.2003
> 
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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]