Hi Yoann,
I see a few possibilities. The first one sticks to the time predicate
system, but is a bit verbose:
{ 0s && (0m || 5m || 10m || ...) }
The second one follows the unix way:
{ int_of_string(list.hd(get_process_lines("date +%M"))) mod 5 == 0 }
Finally, you can simply use gettimeofday which is available in
liquidsoap scripts:
{ int_of_float(gettimeofday()/60.) mod 5 == 0 }
The last solution is the best, but it's always useful to recall that
system calls are available.
HTH
--
David
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users