A simple shell interface to HEPDB is provided, using the KUIP [bib-KUIP] package. To run this interface, simply type hepdb.
+----------------------+
| COUNT [ PATH CHOPT ] |
+----------------------+
Use the COUNT command to count the number of objects in the specified directories.
+--------+
| FILES |
+--------+
Use the FILES command to display the files that are currently open.
+----------------------------------+
| LOGLEVEL [ PATH LOGLEVEL CHOPT ] |
+----------------------------------+
+----------------------------------+
| OPEN PREFIX [ CHFILE ] [ CHOPT ] |
+----------------------------------+
Use the OPEN command to open a HEPDB file
+------------------------+
| CLOSE PREFIX [ CHOPT ] |
+------------------------+
Use the CLOSE command to close a HEPDB file. previously opened using the OPEN command.
The CLOSE command accepts a two character database prefix, top directory name, or pathname. Thus, for a file with database prefix BK, the following commands are identical.
CLOSE BK CLOSE CDBK CLOSE //CDBK
+------------------------------+
| RZOPEN CHTOP CHFILE [ CHOPT ] |
+------------------------------+
Use the RZOPEN command to open an RZ file
+------------------------------------+
| RZCLOSE CHTOP [ CHFILE ] [ CHOPT ] |
+------------------------------------+
Use the RZCLOSE command to close a file previously opened with RZOPEN
+----------------------+
| OUTPUT [ FILE CHOPT ] |
+----------------------+
Use the OUTPUT command to redirect output to a specified file or to the terminal.
+----------+
| VERSION |
+----------+
Use the VERSION command to display the version of the HEPDB software that you are running.
+------------------------+
| CD [ CHPATH ] [ CHOPT ] |
+------------------------+
Use the CD command to change the current working directory. If the pathname begins with a % character then it is assumed to be an alias and is automatically translated by the internal HEPDB routines.
+----------------------------+
| LD [ CHPATH NLEVEL CHOPT ] |
+----------------------------+
Use the LD command to display subdirectories below the specified level.
+--------------------------+
| LS [ CHPATH BANK CHOPT ] |
+--------------------------+
Use the Z is specified, the name of the bank(s) to be displayed may be given. If multiple banks are to be displayed, their names should be separated by commas. Wild cards are permitted in bank names.
+------+
| PWD |
+------+
Use the PWD command to print the current (working) directory.
+--------------------------------+
| STATUS [ CHPATH NLEVEL CHOPT ] |
+--------------------------------+
Use the STATUS command to print usage statistics on the specified directory down NLEVEL levels.
+------------------------+
| TREE [ CHPATH NLEVEL ] |
+------------------------+
Use the TREE command to draw a directory tree starting at the specified directory down NLEVEL levels.
+------------------------------+
| SELECT ISEL1 [ ISEL2 ISEL3 ] |
+------------------------------+
Use the SELECT command to specify the instant of validity for which objects are required.
+----------+
| ZOOM PATH |
+----------+
Use the ZOOM command to descend the specified directory tree to the first lowest level directory that contains one or more entries. The directory specification may contain wild-cards.
+----------------------+
| DIR [ CHPATH CHOPT ] |
+----------------------+
Use the RZLDIR for the specified path. This command is normally used for debug purposes only.
+--------------------------------+
| EXTRACT [ CHPATH OUTPUT CHOPT ] |
+--------------------------------+
Use the EXTRACT command to copy a subset of the HEPDB catalogue
+------------------------------+
| MERGE [ INPUT CHPATH CHOPT ] |
+------------------------------+
Use the MERGE command to merge an update file created by the EXTRACT command into the specified path.
+--------------+
| MKDIR CHPATH |
+--------------+
Use the MKDIR command to create a directory
+--------+
| RM KEY1 |
+--------+
+--------------+
| RMDIR CHPATH |
+--------------+
Use the RMDIR command to remove a directory from the catalogue.
Note that directories can only be removed if:
+--------------+
| RMTREE CHPATH |
+--------------+
Use the RMTREE command to remove a complete directory tree.
Note that if any of the directories below the named directory contain entries, then the command will be refused.