Hi Ian,

The idea (which I failed to convey in my previous message) is to
switch before the output:

backup = switch([({9h-10h},live),({10h-11h},live)])
output.file(%mp3,"/var/www/log/%Y%m%d-%H%M.mp3",fallible=true,s)

Thanks to fallible=true, output.file accepts the fallible source
backup: when it's ready, it is saved to a file, when it's not nothing
happens. The filename will be <year><month><day>-<hour><minute> of the
beginning of the recording, and a new one will be opened for each
recording slot.

Cheers,
-- 
David

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to