[Nut-upsdev] nut_clock_* UT review

VaclavKrpec at Eaton.com VaclavKrpec at Eaton.com
Fri Nov 9 13:57:04 UTC 2012


OK, so I’ll modify it so that it only uses Perl if date bin. desn’t
support the %s format string.

that would indeed be the most suitable approach.
do you need some help for the configure test?


Couldn’t I just do something like this?

date +%s | grep -q '^[0-9]*$' && date_s_works=”yes”


vasek


cheers,
Arnaud
--
Linux / Unix / Opensource Engineering Expert - Eaton - http://opensource.eaton.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.fr



________________________________
Eaton Elektrotechnika s.r.o. ~ S�dlo spolecnosti, jak je zaps�no v rejstr�ku: Kom�rovsk� 2406, Praha 9 - Horn� Pocernice, 193 00, Cesk� Republika ~ Jm�no, m�sto, kde byla spolecnost zaregistrov�na: Praha ~ Identifikacn� c�slo (ICO): 498 11 894

________________________________


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20121109/9c742bf6/attachment-0001.html>


More information about the Nut-upsdev mailing list