HPlogo HP/DDE Debugger User's Guide: HP 9000 Series 700/800 Computers > Chapter 5 Using Debugger Commands

Redirecting Input and Output

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Glossary

 » Index

You can direct the debugger to read its input from a file with an I/O operator or with the input command. File input is aborted if the debugger encounters an error while reading from an input file. Use the property abort command to have the debugger continue reading from the file when it encounters an error.

You can use the property record command to create an input file of debugger commands. See “Recording Command Sequences for Later Playback ” for more information about property record.

From the debugger command input box, you can direct the debugger to read its input from a file using an I/O operator as follows:

<pathname

Read and execute debugger commands from the file pathname.

You can also use I/O operators to read command input from a file and redirect output to a file as follows:

<pathname.in >pathname.out
print abc >pathname.out

You cannot use parameters with input files.

You can redirect debugger command output by issuing a command followed by I/O operators (similar to those found in most shells) from the command entry line. Output remains redirected until the command has been completed.

cmd >pathname

Redirect standard output to pathname.

cmd >>pathname

Redirect standard output and append it to pathname.

cmd 2>pathname

Redirect standard error output to pathname (Korn and Bourne shell notation).

cmd 2>>pathname

Redirect standard error output and append it to pathname.

cmd >>?pathname

Redirect standard error output and append it to pathname.

NOTE: A space must separate the command from the I/O operator. Spaces are not allowed between I/O operators or between an I/O operator and pathname.

You can also group the output of several commands by using brackets. For example, the command

[cmd1;cmd2;cmd3] >pathname

redirects the output from all three commands to pathname.