MPE CI Programming for 7.5
July 22, 2008
Page 42
hp e3000
strategy
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 the 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!