Home Page The Club Computers News Links Glossary EYAWTK
Before Amiga Background ICS OCS ECS AGA ??? PPC
U-Boot SLB Linux Amiga OS Dual Boot Motherboards Peripherals Other
Initialisation Installation OS4 Updates About OS4 File Systems Networking Printing Other
Introduction File System Workbench Preferences Commands Error Msgs Miscellaneous

AmigaOS 4.0 - About OS4 - Commands

TEE Internal
Purpose: Send data from the standard input to the standard output and also print it to the console.
Format: TEE [SIZE <number>] [LINE]
Template: SIZE/N/K, LINE/S
Path: Internal
The TEE command will read data from its standard input and send it to its standard output, but additionally it will also send a copy of the data to the console. This allows for pipe commands to be monitored.

By default the TEE command reads data in chunks of 512 bytes each, which can be changed using the optional SIZE <number> argument; it controls how many bytes will be read apiece. Alternatively, The LINE option can be used to instruct the TEE command to read the input line by line.

Example:

3.OS4:> CD Work:Examples
3.Work:Examples> PUSHCD Ram:
3.RAM Disk:> POPCD
3.Work:Examples>
illustrates how the current directory can be pushed onto the stack before changing to a new directory, and then the previous directory can be popped from the stack later.

See also: PIPE.


Return to Commands Selection

Disclaimer: Amiga Auckland have prepared the above information for the use of its members based on our experiences and as such is subject to revision at any time. Amiga Auckland cannot guarantee any of the information and cannot be held accountable for any issues that may result from using it.


Copyright 2006 Amiga Auckland Inc. All rights reserved.
Revised: February 9, 2006.