>  Docs Center  >  Libraries  >  Daithi  >  TEE
Libraries

TEE

TEE

Name


        TEE

Purpose


        Mimics the Unix tee command allowing output to go to the
        terminal and to a file.

Category


Input/output


Calling Sequence


        Tee,lun,text

Inputs


        lun An open(w) file unit. If the filename keyword is set
                lun is a filename to be opened with append and closed
                before returning.
        string The string to write

Keyword Parameters


        FILENAME If this keyword is set the variable in lun is
                assumed to be the name of an unopened file. The file is
                opened with the APPEND keyword and closed before
                returning to the calling program.

Outputs


      The contents of string are written to the terminal and to the
      file specified by lun.

Side Effects


      None known

Restrictions


      lun must be an open(w) file unit or a string.

Example


      tee,lun,'some text'
      tee,'output.txt','some text to print out',/FILENAME

Modification History


  Written by: Edward C. Wiebe, 2000-08-29.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us