next up previous contents
Next: Overview of How Peep Up: Getting Started With Peep Previous: Running the Peep Server   Contents

Peep's Playback and Recording Features

This section describes a feature in peepd whereby the server can record incoming events for later playback and a closer listen. The events are stored in ''round-robin'' fashion in a playback file specified on the command-line. The maximum number of events is set as a define in the playback.h file in the server code and defaults to 3200 events. The size of the plaback file varies greatly with the amount of XML data that might be sent through the messaging structure but 3200 events should generate a playback file well under 1 MByte. There are five command-line options used to get the playback code running:

-playback-mode -record-mode -record-file=$file$ -start-time=$data$ -end-time=$data$

The recording file defaults to /var/log/peeplog, which is set via a #define in main.h. Otherwise, events are recorded to the file specified by the -record-file option. peepd does not do recording by default. To kick peepd into recording mode, you need to use the -record-mode option and optionally the -record-file option. An example:

./peepd -record-mode -record-file=test.log

Then to playback, you need to specify -playback-mode and peepd will playback the events in the log and then exit. As always, -record-file is optional. An example:

./peepd -playback-mode -record-file=test.log

Since there are many events in a single log file, you'll probably want to play back sounds between a specific time. peepd lets you do this through use of the -start-time=$start time$ and -end-time=$end time$ options. If a -start-time is given without an -end-time, peepd will play back from the start time to the last event in the file. The date format used is the same as the output of date except without the specifier for EST/PST. The date format used is defined in playback.h as a string to strptime. An example:

./peepd -playback-mode -f testlog -t 'Wed Mar 14 22:15:45 2001' -e 'Wed Mar 14 22:17:00 2001'

Note that the 24 hr time clock is used. It's less ambiguous and simpler.


next up previous contents
Next: Overview of How Peep Up: Getting Started With Peep Previous: Running the Peep Server   Contents
Collin Starkweather 2002-11-03