Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Command Interpreter Access and Variables Programmer's Guide: Series HP 3000 Computer Systems > Chapter 8 Command Input/Output Redirection (CIOR)

Determining Redirection: HPSTDIN and HPSTDLIST

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

CIOR provides two predefined MPE/iX string variables to reflect the state of I/O redirection. These variables can be used within User Commands or programs that need to detect if their input or output has been redirected. HPSTDIN will default to the string "$STDIN". HPSTDLIST will default to the string value "$STDLIST". These values also indicate whether or not input or output is currently redirected. If input is redirected, HPSTDIN will contain the name of the file to which input has been redirected. If input has been redirected through a file equation backreference, HPSTDIN will contain the formal file designator of the file equation. Similarly, HPSTDLIST will contain the filename or formal file designator of the file or file equation to which output has been redirected.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.