MPE/iX - CI Programming for Stability
July 18, 2008 HP World '01 84
CI I/O redirection (cont)
• how it works:
• CI ensures the command is not one of the excluded commands
• CI scans the command line looking for <, >, >> followed by a possible
filename (after explicit variable resolution has already occurred)
• text inside quotes is excluded from this scan
• text inside square brackets is excluded from this scan
• filename is opened and “exchanged” for the $STDIN or $STDLIST
• after the command completes the redirection is undone
• examples:
• INPUT varname < filename
• ECHO The next answer is: !result >>filename
• LISTFILE ./@,6 > filename
• PURGEACCT myacct <Yesfile
• PURGE foo@ ;temp ;noconfirm >$null
• ECHO You need to include !<THIS!> too!