Writing data to virtual log devices
Arbitrary data is written to a virtual log device by opening the appropriate file in the /dev directory and writing data to the file. A virtual log can be opened by one process at a time.
For example:
To write messages to the virtual log devices by using the echo command,
enter the following command:
echo “Log Message” > /dev/vlog0To store files to the virtual log devices by using the cat command,
enter the following command:
cat /etc/passwd > /dev/vlog0The
maximum individual write size is limited to 32 KB, and programs that
attempt to write more data in a single write operation receive an
I/O (EIO) error. The command-line interface (CLI) utilities, such
as the cat command, automatically break up the
transfers into 32 KB write operations.