Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dpy(1) — GENIX 4.1A

Media Vault

Software Library

Restoration Projects

Artifacts Sought



      DPY(1)                  GENIX Programmer's Manual                  DPY(1)



      NAME
           dpy - display the output of a command repeatedly

      SYNOPSIS
           dpy [ -a# ] [ -d ] [ -o# ] [ -s# ] [ -t ] command [ arg ... ]

      DESCRIPTION
           Dpy executes the given command repeatedly while displaying the  out-
           put  of  the  command  to  the  terminal.  This is done with minimal
           changes to the screen by using  the  curses(3)  subroutine  package.
           When  given  commands  such as ps(1) or w(1), you can produce a con-
           tinuously updating status of the system.

           In order to increase the speed of the program, dpy executes the com-
           mand  directly  without the involvement of any shell.  This does not
           affect most commands, since the arguments are expanded by the  shell
           before dpy is run.  However, if you need repeated argument expansion
           (such as in the command "ls *"), want to run  multiple  commands  in
           series, or want to pipe the output of one program into another, then
           you need to run a shell.  This is done by running the  shell  expli-
           citly,  as  in  the examples 'dpy csh -cf "ls *"' and 'dpy sh -c "ls
           *"'.

           To prevent excessive loading of the system, dpy sleeps between  each
           execution  of  the  command.   The default sleep time is 10 seconds.
           This can be changed by using the -s option, which takes the  desired
           sleep  time in seconds (the letter 's' is optional). The top line of
           the display usually contains a title line which describes  the  com-
           mand  being  executed,  the sleep time, and the date.  The -t option
           removes the title line completely, while the -d option removes  just
           the  date.  Normally, only the first screenful (page) of the command
           output can be seen.  This can be changed by  using  the  -a  option,
           which  automatically advances to the next page.  Its argument is the
           number of updates to make between page advancements.  To  provide  a
           sense  of  continuity,  the  last line of the old screen is normally
           also shown as the top line of the new screen to provide a  one  line
           overlap.  The -o option can be used to change this overlap value.

           Commands can be given to dpy while it is running.  Such commands  do
           not  echo, are self-terminating (no return is necessary), and can be
           edited before completion by using the  erase  and  kill  characters.
           The  return  character  updates  the  screen immediately.  The space
           character advances to the next page of  data.   The  sequence  '#s',
           where  '#'  is  a  number, sets a new sleep time.  The sequence '#p'
           shows the specified page of data.  The sequence '#a' sets  automatic
           page  advancment for every '#' updates.  The sequence 'na' turns off
           automatic page advancement.  The sequence '#o' sets  the  number  of
           lines  of  overlap  between  pages.  The sequence 'nt' turns off the
           title line, while the character 't' restores it.  The sequence  'nd'
           turns  off the date, while the character 'd' restores it.  The char-
           acter '^L' refreshes the screen.  The character 'q' (or  the  inter-
           rupt character) exits.  The character 'i' initializes all parameters



      Printed 11/16/83                                                        1





      DPY(1)                  GENIX Programmer's Manual                  DPY(1)



           to their default values.

           As long as no commands are being typed, the sleep time increases  at
           the  rate  of  one second per minute, up to a maximum of one minute.
           Typing any command restores the desired sleep  time.   This  feature
           reduces  the  load  on the system when users walk away from the pro-
           gram.

      BUGS
           Fast typing causes the screen to blank out briefly.  This is due  to
           the  "feature"  of  the curses package of not updating when input is
           ready.

           Since dpy does not show any output until a command has exited,  run-
           ning commands which never exit (such as vmstat(1)) is pointless.








































      Printed 11/16/83                                                        2



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026