wdiskts

Section: WIN SYSTEM (1W)
Updated: 2002.5.31
Index Return to Main Contents
 

NAME

wdiskts, wdisktsd - Write of win format data with "written time" in disk file  

SYNOPSIS

wdiskts shmkey outdir [ nfiles [ logfile ]]

wdisktsd shmkey outdir [ nfiles [ logfile ]]

 

DESCRIPTION

Wdiskts writes win format data with "written time" written in the shared memory segment of a key shmkey in a directory outdir of disk as a win format file. Since it reads from the shared memory in memory for each 1 second, it is necessary that the size of shared memory of read side is one that does not allow overwrite for 1 second. When value in minute is changed, it immediately writes in disk, and it aligns packets in order of time during write. In wdiskts, files are put together in files having a name of 'YYMMDDhh.mm' format for each 1 minute. System time is used as a file name. Therefore, when the system time jumps for 1 minute or more, file names may be discontinuous or written file may be overwritten.  nfiles The maximum number of files to be saved. Files of which latest number of files is  nfiles are always saved, and files older than those are deleted. When nfiles is not specified, or when '0' is specified, files are not automatically deleted.

Wdisktsd is initiated in daemon mode.

When a log file name  logfile is specified, operation log is set here, and when not specified, log information is sent to the standard output (however, it is sent to syslogd(8) when operation is made in the daemon mode). Log file is opened/closed in each write.

When wdiskts is initiated without argument, brief usage is displayed.  

FORMAT ON SHARED MEMORY

Refer to recvt(1W). Note that -B does not support format written by option.  

FILE

Wdiskts creates the following text file in an output directory  outdir, and shows operation status depending on each content.

BUSYFile name currently being written
COUNTThe current number of files
LATESTThe latest files of which write is completed
MAXThe number of files to be saved
OLDEST The oldest file name

When MAX is rewritten in operation of wdiskts, then "the number of files to be saved" changes to a new value.  

SOURCE

wdiskts.c
 

SEE ALSO

recvt(1W), order(1W)


 

Index

NAME
SYNOPSIS
DESCRIPTION
FORMAT ON SHARED MEMORY
FILE
SOURCE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 00:22:59 GMT, September 20, 2017