fromtape

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

NAME

fromtape - Derivation of minute files on disk from win format data on tape  

SYNOPSIS

fromtape [ -f device ] [ -n count [ -s ]] start end rawdir [ mondir ]

 

DESCRIPTION

Fromtape reads win format data written in by wtape(1W) and uses the same format as the one used by wdisk(1W) to create minute-by-minute RAW format files for a period from a time  start to another time  end in a directory  rawdir. Similarly, if a directory  mondir is specified, MON format files are created in it.

start and  end are in the two-digit year, month, date, hour, and minute 'YYMMDD.hhmm' format. The output includes all the way down to the end of the last "minute" specified by end.

During execution, the latest file name (in 'YYMMDDhh.mm' format) of the file just written is written in the file(s) LATEST in rawdir (and  mondir ).  

OPTIONS

-f device
Specifies the tape device name. The default is /dev/nrst0. The device must be in the no-rewind mode (/dev/nrst*) while closed.
-n count
Restricts the number(s) of files to be saved in rawdir (and  mondir ) to the count  count, respectively. This is performed by deleting the file  count minutes older than the next-to-be written file when the number of files reaches  count. Accordingly, any files older than that point will be left in the same directory without getting deleted.
-s
Is specified along with -n to request fromtape for synchronous execution with the program (such as pmon(1W) or ecore(1W)) that reads output files. In this case, fromtape may inspect the file USED in  rawdir and wait for execution of unused files to avoid deleting them. If mondir is also specified, the file USED in  mondir are used instead. Usually, this option does not have to be specified because file reading programs are faster than fromtape.
 

TYPICAL USAGE


fromtape -f /dev/nrst21 -n 30 950817.1100 950817.1359 /dat/raw1 /dat/mon1

In this example, RAW/MON data for 3 hours will be run while minute-by-minute files for the past 30 minutes is saved. At the same time, trigger detection, monitor record printing, and cutting out of event files can be performed by executing, for example,
pmon pmon1.prm 950817 1100 180 events events1.prm 950817.1100 950817.1359
Meanwhile, when there are already any trigger lists available, eventsrtape(1W) allows for cutting out event files directly from the tape.
 

SOURCE

`fromtape.c'
 

SEE ALSO

ecore(1W), pmon(1W), events(1W), eventsrtape(1W), wtape(1W), rtape(1W), winformat(1W)


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
TYPICAL USAGE
SOURCE
SEE ALSO