Editing files, Using vi on guardian files, Using tedit on oss files – HP NonStop G-Series User Manual

Page 74

Advertising
background image

For more information on the run command, see the run(1) reference page either online or in
the Open System Services Shell and Utilities Reference Manual.

Editing Files

The primary OSS text editor is the vi editor (described in

Appendix A (page 155)

). The Guardian

text editor is TEDIT.

While neither editor can be used directly to edit files in the opposite environment, they can be
used indirectly and with limitations.

It is always best to edit files with native text editors in their native environment. When it is not
possible or convenient to do this, you can use the methods described here.

Using vi on Guardian Files

The vi editor can be used to edit Guardian type-180 files (Guardian ASCII text files created by
C programs) that reside in the Guardian environment (/G).

The vi editor can read but cannot write to Guardian edit-formatted files (file type 101) in the
Guardian environment. (EDIT files cannot be created with the vi editor.)

To use the vi editor on a Guardian type-101 file, convert the type-101 file to a type-180 file by
using the EDITTOC Guardian program. After editing the file, convert it back to a type-101 file
using the CTOEDIT Guardian program.

Using TEDIT on OSS Files

To use the Guardian TEDIT editor on an OSS file, first copy the OSS file into the /G directory, then
convert it to a type-101 file by using the Guardian CTOEDIT program.

After editing the file with the TEDIT editor, use the Guardian EDITTOC program to convert the file
to type 180. Copy the file back to the OSS environment.

OSS Commands That Interoperate With the Guardian Environment

Not all OSS commands interoperate with the Guardian environment. Some of those that do are
the following.

Description

Command

Stops a print command.

cancel

Copies a file.

cp

Displays the file type.

file

Runs a Guardian process from Open System Services.

gtacl

Sends a signal to a running process.

kill

Lists statistics for files.

ls

Runs a process in the OSS environment from the Guardian environment. (TACL
command.)

osh

Writes, lists, and extracts archive files.

pax

Invokes a Guardian program for installing OSS files onto the OSS file system. (TACL
command.)

pinstall

Displays current process status.

ps

Runs a process with Guardian attributes.

run

Identifies users currently logged in.

who

74

Interoperability Between OSS and Guardian Environments

Advertising
This manual is related to the following products: