Copying Scripts Over The Network - DEC Digital Alpha VME 4/224 User Manual

Table of Contents

Advertisement

To add another command to the script, use the append operator, >>. If the
command you are appending contains characters that could be interpreted by
the echo command, use a grouping character to enclose the appended command.
The following example uses the single quote ' grouping character to prevent the
command-separator character ( ; ) in the appended command from terminating the
echo command.
>>> echo 'd 3fff000 5 ; e 3fff000' >> foo
>>> cat foo
e pmem:3fff000
d 3fff000 5 ; e 3fff000
>>> foo
pmem:
3FFF000 0000000000000000
pmem:
3FFF000 0000000000000005
You can also use the grouping character to help you create a script that contains
many commands. You have to rearrange the echo command so that the appended
characters are at the end. Then you use the first grouping character to open the
character string and take as many lines as needed to create the script before
entering the closing grouping character. The following example shows how to
create a long script using grouping characters:
>>> echo > foo 'ex 3fff000
_> d 3fff000 7
_> e 3fff000
_> d 3fff000 5
_> e 3fff000'
>>> cat foo
ex 3fff000
d 3fff000 7
e 3fff000
d 3fff000 5
e 3fff000
>>> foo
pmem:
3FFF000 0000000000000000
pmem:
3FFF000 0000000000000007
pmem:
3FFF000 0000000000000005

12.9 Copying Scripts Over the Network

The console provides a mechanism for transferring command scripts over the
network. You can create scripts on an OpenVMS system and then fetch them
from the console of an Digital Alpha VME 4 system. Use the following procedure:
1. Create a file of console commands in the familiar OpenVMS environment,
using your favorite editor to create the script. In this simple example, the
OpenVMS create command makes a file called sample..
# Append "d 0 5 ; e 0" to foo.
# List foo.
# Execute foo.
Console Primer 12–15

Advertisement

Table of Contents
loading

This manual is also suitable for:

Digital alpha vme 4/288

Table of Contents