Hp NonStop G-Series Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Matériel informatique Hp NonStop G-Series. HP NonStop G-Series User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 213
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
Open System Services User's Guide
Abstract
This guide describes the HP NonStop operating system Open System Services (OSS) user environment. The HP NonStop
operating system Open System Services (OSS) environment enables users on HP NonStop servers to integrate an operating
system similar to the UNIX operating system into their work environment. Topics include the OSS environment's: file system,
shell, commands and utilities, interoperability with the Guardian environment, and fundamental user tasks. This guide supports
J06.03 and all subsequent J-series RVUs, H06.03 and all subsequent H-series RVUs, and G06.15 and all subsequent G-series
RVUs until otherwise indicated in a replacement publication.
HP Part Number: 522700-005
Published: February 2014
Edition: J06.03 and subsequent J-series RVUs, H06.03 and subsequent H-series RVUs, and G06.15 and subsequent G-series RVUs
Vue de la page 0
1 2 3 4 5 6 ... 212 213

Résumé du contenu

Page 1 - Abstract

Open System Services User's GuideAbstractThis guide describes the HP NonStop operating system Open System Services (OSS) user environment. The HP

Page 2

Figures1 Manuals Related to the Open System Services User’s Guide...182 OSS and Guardian Application an

Page 3 - Contents

If your request has already been printed, or if there are no requests in the print queue, the systemresponds with the following message:No spooler job

Page 4 - 4 Contents

The general format of the cp command is:cp source destinationsource is the name of the file to be copied, destination is the name of the file to which

Page 5 - Contents 5

$ ls reports file2 file3 Note that you do not have to specify file2 and file3 as part of dirname. This is because thefiles being copied are retainin

Page 6 - 6 Contents

NOTE: For the following RVUs, the mv command fails with error “Guardian or User Defined Error197” if a remote user attempts to move an SQL object that

Page 7 - Contents 7

$ ls file1 file3 newfile project reports Finally, list the contents of the /reports directory to verify that the command has moved the filethe

Page 8 - 8 Contents

The actual differing lines then follow. In the leftmost column, < (left angle bracket) indicates linesfrom file1 and > (right angle bracket) ind

Page 9 - Contents 9

The filename entry can be the name of the file, the relative pathname of the file, the absolutepathname of the file, or a list of filenames separated

Page 10 - Examples

Removing a Single FileIn the following example, you remove the file called file1 from your home directory. If you aren’talready in your home directory

Page 11 - About This Document

$ rm -i record? Before removing each file, the system prompts you, and with a y or n response to the prompt, youcan tell the system whether to remove

Page 12 - Acknowledgment

a single disk partition. (A disk partition is a physical disk, or a portion of one, that has beenprepared to contain file directories.)Using LinksTo l

Page 13 - Document Organization

About This DocumentThis user’s guide describes the HP NonStop™ Open System Services (OSS) user environment.Specifically, this guide describes:• OSS en

Page 14 - Notation Conventions

Removing LinksFiles are removed (deleted) with the rm (remove file) command. When a file is linked to more thanone filename—that is, when several name

Page 15 - Notation Conventions 15

The third field for each entry, the number to the left of the user name, represents the number oflinks to that inode-number. Notice that file3 and che

Page 16 - Notation for Messages

Note that the file command has identified file1, file2, and file3 as ASCII text files andproject and reports as directories.NOTE: For ASCII text files

Page 17 - Related Information

9 Managing DirectoriesThis chapter describes how to manage OSS directories. After completing this chapter, you will beable to:• Create directories• Ch

Page 18

Note that in the file structure in Figure 6, the /project, /project2, and /reports directoriesare located one level below your home directory and that

Page 19 - Publishing History

$ pwd /u/uname/project2 $ cd To change your current directory to the /status directory, enter the cd command with the relativepathname, as follows:$ c

Page 20

$ pwd /u/unameTo move up the directory structure more than one level, you can use a series of relative directorynames, as shown in the following examp

Page 21 - OSS Components

Copying Directories (cp)You can use the cp command with the -r flag to copy directories and directory trees to anotherpart of the file system. The cp

Page 22 - OSS and UNIX

Removing Directories (rmdir)When you no longer need a particular directory, you can remove it from the file system with thermdir (remove directory) co

Page 23 - Application Development

costs tasksThe /project2 directory still contains three subdirectories: /costs, /reports, and /tasks.You can remove these directories by using patt

Page 24 - OSS Processes

AcknowledgmentThe Portable Archive Interchange (pax) utility software was developed by Mark H. Colburn andis sponsored by the USENIX Association.©1989

Page 25

rm -ri pathnameWhen you enter the command in this form, you are prompted for verification before each file ordirectory is removed. By answering y (yes

Page 26 - 2 The OSS File System

10 Managing Access to Files and DirectoriesThis chapter describes how to control access to your files and directories. After reading this chapter,you

Page 27 - The OSS File-System Structure

The user/owner of a file or directory is generally the person who created it. If you are the ownerof a file, you can change the file permissions with

Page 28 - OSS Pathnames

Figure 8 File and Directory Permission FieldsDefault PermissionsWhen you create a file or directory, the system automatically supplies a predetermined

Page 29 - Pathname Length

-rw-r--r-- 1 larry system 0 Jun 5 11:03 record1 -rw-r--r-- 1 larry system 0 Jun 5 11:03 record6 drwxr-xr-x 2 larry system 32 Jun 5 10:31

Page 30 - OSS Filesets

the file or files whose permissions you want to change. You can also use pattern-matching charactersto specify files.The userclass-operation-permissio

Page 31 - 3 The OSS Shell

Changing Directory PermissionsThe procedure for changing directory permissions is the same as that for changing file permissions.However, to list the

Page 32 - Metacharacters

You can also use an absolute assignment to remove permissions. In the following example, thecommand chmod a=rw file3 assigns read (r) and write (w) pe

Page 33 - Shell Built-In Commands

The entire permission code for a file or directory is specified with a four-digit octal number, onedigit each for owner, group, and others, and one di

Page 34 - /bin/command_name

2=no write permission1=no execute permission0=read,write, and execute permissionTable 21 lists the eight possible octal values for each position of oc

Page 35 - Command-Entry Aids

• Added Secure SFTP transfer information to “The ftp Utility” (page 153).• Added the new “OSS Core Utilities User Commands” (page 185) appendix.New an

Page 36 - Using Pipes and Filters

read and execute permissions. However, because you have previously set a user mask of 037,that further restricts the file permissions. As a result, th

Page 37 - Grouping Commands

The owner entry is the user name of the new owner of the file. The filename entry is a list ofone or more files whose ownership you want to change. Yo

Page 38 - Filename Completion

Manipulating an audited Guardian file through OSS function calls and the /G directory also causeslog entries; the information logged for Guardian file

Page 39 - Aliases 39

Table 22 OSS Functions Audited When Used With Audited Filesets (continued)Attributes or Actions AuditedOSS FunctionThe contents of the symbolic link a

Page 40 - Command History

Additional Security ConsiderationsThe security guidelines enforced at your site protect your files from unauthorized access. See yoursystem administra

Page 41 - Command-Line Editing

11 Managing ProcessesThis chapter discusses OSS processes. After completing this chapter, you will be able to do thefollowing:• Understand OSS program

Page 42 - 42 The OSS Shell

Table 25 Shell Notation for Redirecting Input and OutputExampleDescriptionNotationwc <file3Reads standard input messages from a file.<ls >fil

Page 43 - The Shell Environment

$ ls >> fileIf file does not exist, the shell creates it. Redirecting Standard Error Messages to a FileWhen a command executes successfully, it

Page 44

the shell to write the standard error output (file descriptor 2) to the file associated with the standardoutput file (>&1), outfile.Running Sev

Page 45 - Environment Variables

$ find / -type f -print > dirpaths & [1] 24 When the background process starts, the system assigns it a job number and a process ID anddisplay

Page 46 - Setting Environment Variables

Chapter 4: OSS Commands and UtilitiesThis chapter lists and describes user commands and utilities.Chapter 5: Interoperability Between OSS and Guardian

Page 47 - Environment Variables 47

You can also check the status of a particular process by using the -p flag and the process ID withthe ps command. The general format for checking the

Page 48 - Example .profile File

57618 #ptmy11a 00:00 /bin/-sh46150 #ptmykzh 00:00 vi57570 #ptmy110 00:00 <defunct>85419 #ptmy110 00:00 <defunct>Generally, the

Page 49

The general format for terminating a process is as follows:kill process_IDIf you wish to end all the processes you have started since starting Open Sy

Page 50 - How the Shell Finds Commands

MANUALS.RICK /G/ztnt/#pty003e Oct 19 15:12 Note that the who command lists the user name of each user on the system, the system being used,and

Page 51 - Shell Procedures

lp outfile<EOF>127448228.aAlternatively, you can submit multiple commands by entering the commands into a file and specifyingthe filename on the

Page 52

where job-numbers is one or more assigned job numbers assigned by at. For example, thefollowing command cancels three jobs:$ at -r 127448231.a 1274482

Page 53 - 4 OSS Commands and Utilities

• month is the month of the year (1 through 12) of execution.• weekday is the day of the week (0 through 6 for Sunday through Saturday) of execution.•

Page 54 - The apropos Command

12 Productivity Tools: grep and findThis chapter describes two utilities that help you work with files. After completing this chapter, youwill be able

Page 55 - Command Syntax

$ grep "Mario Garcia" emp* empad: Mario Garcia X3871 As a result of the preceding grep command, you have learned that Mario Garcia is in th

Page 56

Deleting Lines and Saving the Output in Another FileSuppose that you maintain a file that lists everyone in your company by medical insurance carrier.

Page 57

Computer TypeComputer type letters indicate:• C and Open System Services (OSS) keywords, commands, and reserved words. Typethese items exactly as show

Page 58

/usr/chang/reports96 /usr/chang/reports96/reportjan /usr/chang/reports96/reportjan.tmp /usr/chang/reports96/reportmay /usr/chang/reports96/reportmay.t

Page 59

13 Transferring and Archiving FilesThere are several utilities for copying, moving, and transferring files between the OSS and Guardianenvironments.Fo

Page 60

behave the same as UNIX tape devices. The interaction between the tape process and tape deviceis transparent to the pax user.If the -W wait flag appea

Page 61 - Files and Directories

Restoring Files From a Tape to the Guardian EnvironmentTo restore files from the tape mounted on $TAPE to the Guardian target $VOL.SUBVOL, extractingo

Page 62

If ftp finds a $HOME/.netrc autologin entry for the specified host, ftp attempts to use theinformation in that entry to automatically log in to the re

Page 63 - Process Management

A The vi EditorThe vi text editor is well suited for the day-to-day editing tasks of most computer users. Using vi,you can quickly and easily open a f

Page 64 - Security and Permissions

also result in certain vi command keys not functioning properly. However, you can take thefollowing steps to ensure the correct behavior of vi:• Start

Page 65

Example 2 Sample .exrc File" arrow keysmap <Ctrl-V><up-arrow> kmap! <Ctrl-V><up-arrow> <Ctrl-V><Esc>kimap <

Page 66

You should see the text of your sample file at the top of the screen and a number of lines followingit that begin with a ~ (tilde). The lines beginnin

Page 67 - File Formatting Commands

Add the word “new” just before the word “text” in the first line in the file: First, move the cursor tothe t in “text.” Then, enter input mode by typi

Page 68 - Two Different File Systems

M address [ , new-value ]… - ] {0|1|2|3|4|5|6|7|8|9}…An ellipsis immediately following a single syntax item indicates that you can repeat that syntaxi

Page 69 - The /E Directory

general form to move the cursor in larger steps. For example, to move the cursor forward fivewords, enter:5w Deleting Multiple WordsUsing the general

Page 70 - Guardian File Types

Searching for StringsUse the / command to search for strings of characters in a file. To try the / command, first moveto the top of the my.file file.

Page 71

Other vi FeaturesYou may want to try some of the other features of vi. The reference page for vi lists its availablecommands. You may want to pay part

Page 72 - Pathname Mapping

The vi command : prompts for an ex command. This substitution command is applied to all linesin the file by the % address. The / (slash) is used as a

Page 73

:1,3w my.new.file<Return>Deleting a Block of TextThe delete command in ex is d, just as in vi. To delete from the current line to the end of the

Page 74 - Editing Files

you enter vi or ex. In this file, you do not need to use the vi command :, because these commandsare read directly by the underlying ex editor.For exa

Page 75 - Printing and Spooler Commands

B The ed EditorThis appendix explains how to create, edit, display, and save text files using the ed editor, aline-editing program.A good way to learn

Page 76

a The only way to stop appending is to type a line that contains only a period. . If you stop adding text to the buffer and then decide you want to ad

Page 77 - Guardian DEFINEs

NOTE: The u (undo) subcommand restores the buffer to the state it was in before it was lastmodified by an ed subcommand. The subcommands that u can re

Page 78

e filenameThis command loads the file filename into the buffer, erasing any previous contents of thebuffer.nr filenameThis command reads the named fil

Page 79

[ ] BracketsBrackets enclose items that are sometimes, but not always, displayed. For example:Event number = number [ Subject = first-subject-value ]A

Page 80

then renumbers all the lines in the buffer. If you do not use a line number, the r subcommand addsthe new file to the end of the buffer’s contents.The

Page 81

Finding Your Position in the BufferWhen you first load a file into the buffer, the last line of the file is the current line. As you workwith the file

Page 82

- The only way to stop - ?When you try to move beyond the first line in the buffer, you receive the ? message. You cannotmove beyond the top of the bu

Page 83

The context search begins on the first line before the current line and locates the first line thatcontains the string appending. That line becomes th

Page 84

where n is the number of the line on which the substitution is to be made. In the following example,the s subcommand moves to line number 1, replaces

Page 85 - 6 Running the OSS Shell

Substituting at the Beginning or End of a LineTwo special characters let you make substitutions at the beginning or end of a line:Makes a substitution

Page 86 - The osh Command

nd • To delete lines numbered n through m from the buffer, enter:n,md Deleting the Current LineIf you want to delete the current line, simply enter d.

Page 87 - Exiting OSS

In the following example, the 1,2m4 subcommand moves the first two lines of the buffer to theposition following line 4:1,2m4 1,$p line that contains o

Page 88 - Managing the OSS Environment

The only way to stop appending new material is to use the proper keys to create a a period. The period on a line by itself stops ed from adding text t

Page 89 - Security

line that contains only --repeat, only-- a period. In the 4i subcommand, you enter the new line of text and then type a period on the next line toend

Page 90 - 7 Creating Files

Figure 1 Manuals Related to the Open System Services User’s GuideFollowing are descriptions of related manuals:• C/C++ Programmer’s Guide. This guide

Page 91 - Working With Files 91

The 1,$p subcommand displays the entire contents of the buffer, showing that ed has made andinserted the copies and that the original lines are not af

Page 92 - 92 Creating Files

C Displaying Version Information With vprocThe vproc command uniquely identifies and displays product version information for one or morefiles. If you

Page 93 - 8 Managing Files

Running vproc Interactivelyvproc can be run interactively. Starting an interactive vproc process from the OSS environmentallows you to retrieve inform

Page 94

Displayed InformationDisplayed LabelIndicates the type of system the product runs on, which can be TNS(CISC-based architecture), TNS/R (RISC-based arc

Page 95

RecoveryNo action is required.184 Displaying Version Information With vproc

Page 96 - The cat Command

D OSS Core Utilities User CommandsThe OSS Utilities product (OSSUTIL – T8626) provides the essential OSS user commands andutilities. Beginning with th

Page 97

The following table lists the available OSS Core Utilities commands as of the J06.17 and H06.28RVUs. This list is not a comprehensive list.Print machi

Page 98 - Printing Files

Front-end for the groff document formatting system.groffPrint the groups a user is in.groupsCompress or expand files.gzipOutput the first part of file

Page 99

Remove files or directories.rmRemove empty directories.rmdirSide-by-side merge of file differences.sdiffPrint a sequence of numbers.seqCompute and che

Page 100 - Copying Files (cp)

Print the user names of users currently logged in to the current host.usersList directory contents.vdirVi IMproved, a programmer's text editor.vi

Page 101 - Copying Files (cp) 101

• Guardian TNS/R Native C Library Calls Reference Manual. This manual describes syntaxand semantics of the C run-time library calls and header files f

Page 102 - Copying an Entire Directory

or specify:/usr/coreutils/bin/command◦ To use an original OSS Utilities command, you can set the PATH environment variable:export PATH=/bin:/usr/coreu

Page 103 - Renaming Files

Glossary$ZTC0 1. The default transport-provider process that provides Transmission Control Protocol/InternetProtocol (TCP/IP) services to sockets prog

Page 104 - Comparing Files (diff)

See also common applications environment (CAE).base profile. A minimum set of software components required to create a common applications environment

Page 105 - Sorting File Contents (sort)

compliance The testing and verification process that precedes X/Open licensing.conformancedocumentAn implementor’s document that must accompany softwa

Page 106 - Removing Files (rm)

data transparent. Describes software that examines all eight bits of every data byte, and that uses no bit in a databyte for its own purposes. Interna

Page 107 - Removing Multiple Files

extended datasegmentAn area of virtual memory used to contain data.feature-test macro A symbol that, if defined in a program’s source code, includes s

Page 108 - Linking Files (ln)

See also fileset..file transferprotocol (FTP)1. The Internet-standard, high-level protocol for transferring files from one machine to another.The serv

Page 109 - Using Links

• Supplementary group ID• Saved-set group IDgroup list. A process attribute that is used with the effective group ID of the process to determine the f

Page 110 - Removing Links

internationalization.The process of designing and coding software so that it can be adapted to meet the needs ofdifferent languages, cultures, and cha

Page 111 - Determining File Type (file)

localization. The process of adapting computer interfaces, data, and documentation to the culturally acceptedway of presenting information in the cult

Page 112 - 112 Managing Files

© Copyright 1996, 2014 Hewlett-Packard Development Company, L.P.Confidential computer software. Valid license from HP required for possession, use or

Page 113 - 9 Managing Directories

Include the document title, part number, and any comment, error found, or suggestion forimprovement you have concerning this document.20

Page 114 - Changing Directories (cd)

Open SystemServices (OSS)environmentThe HP NonStop Open System Services (OSS) application program interface (API), tools, andutilities.Open SystemServ

Page 115

pathnamecomponent.See filename..pathnameresolution.In the Open System Services (OSS) environment, the process of associating a single file with aspeci

Page 116 - 116 Managing Directories

real group ID. An attribute of a process. When a process is created, the real group ID identifies the group ofthe user or parent process that created

Page 117 - Renaming Directories (mv)

set-user-IDprogramA program file that has the S_ISUID bit set in its file mode.shared memory An interprocess communication mechanism that allows two o

Page 118 - Removing Directories (rmdir)

system A single copy of the HP NonStop operating system and the collection of hardware groups inwhich it runs.system console An optional file that rec

Page 119 - Removing Multiple Directories

IndexSymbols&, 138&&, 35( ), 37*, 30.exrc file and vi editor, 156.profile file, 43, 88aliases, 40example, 48reexecuting, 40/ directory (sl

Page 120 - 120 Managing Directories

COLUMNS variable, 44comm command, 56Commandentry aids, 35schedulingat command, 143batch command, 145crontab command, 145syntax, 55command command, 56C

Page 121 - Understanding Permissions

line, 57ln, 57, 108locale, 57logger, 58logname, 58lp, 58, 99lpstat, 58, 99ls, 58, 74, 76, 93, 116make, 58man, 54, 58man pages, 53mkcatdefs, 58mkdir, 5

Page 122

cron program, 145crontab command, 56, 145crontab file, 145csplit command, 56Ctrl-c, 90Current directoryoverview, 114removing, 119Customizing the vi en

Page 123 - Default Permissions

overview, 26permissions, 121, 125printing, 98removing, 106renaming, 103searching, 147sorting, 105transferring, 151types, 111Filesetsmounting, 89overvi

Page 124

1 Introduction to Open System ServicesOpen System Services (OSS) is the HP open computing interface to the NonStop operating system.The OSS environmen

Page 125 - Changing File Permissions

Locating files, 149logger command, 58Logging off TACL, 87Logging on to TACL, 85logname command, 58LOGNAMES variable, 44lp command, 58, 99lpstat comman

Page 126 - Setting Absolute Permissions

pinstall command, 74pipe() function, 133Pipes, 36pname command, 58POSIX.1 standards, 25POSIX.2 standards, 25PPID variable, 44pr command, 58, 96print c

Page 127 - $ ls -l file3

SHELL variable, 45Shell variables.profile file, 47clearing, 48defining, 46displaying, 48exporting, 47parameter substitution, 47shift command, 34, 59,

Page 128 - Setting the User Mask

interactive, 182VT100 emulation, 85Wwait command, 34, 60, 67wall command, 60wc command, 60, 136whatis command, 54, 60whence command, 34, 60, 67who com

Page 129 - $ umask 037

to the Guardian environment. The function of some OSS commands has been extended fromordinary UNIX usage to allow interoperability with the NonStop op

Page 130 - Changing Owners and Groups

Figure 2 OSS and Guardian Application and User InterfacesBecause of its interrelationship with the Guardian environment, from a user standpoint Open S

Page 131

OSS EnvironmentA typical NonStop system on which the OSS environment has been installed includes workstationsconnected to it by a local area network.

Page 132

formats defined by the POSIX.1 standard; the shell and utilities defined by the POSIX.2 standard;plus additional commands, Internationalization (I18N)

Page 133

2 The OSS File SystemThe OSS file system conforms to the POSIX standards and is therefore essentially the same as aUNIX file system. It is fundamental

Page 134 - • Security Management Guide

OSS Directories and SubdirectoriesYou can organize your files into groups and subgroups by placing them in directories. In addition,you can place dire

Page 135 - 11 Managing Processes

At the next level down from the root directory are nine directories, each with its own system ofsubdirectories and files. Figure 3 shows subdirectorie

Page 136

Relative PathnamesRelative pathnames do not begin with / (root). Instead they define a path that is relative to eitherthe directory you are currently

Page 137

ContentsAbout This Document...11Supported Release Version Updates (RVU

Page 138 - Running Background Processes

OSS FilesetsThe OSS file system consists of one or more filesets. Each fileset is a hierarchy of files—a set ofdirectories, subdirectories, and files.

Page 139 - Checking Process Status

3 The OSS ShellThe user interface in the OSS environment is called the OSS “shell.” The OSS shell is a programthat interprets the commands you enter,

Page 140 - 140 Managing Processes

Table 1 Selected OSS Shell Features (continued)DescriptionFeatureA feature that allows user-assigned values to be passed to the shell and to variables

Page 141 - The jobs Command

Table 2 Shell Metacharacters (continued)DescriptionMetacharacterRedirects output to a specified file.>Redirects input and specifies that the shell

Page 142 - 142 Managing Processes

Table 3 Shell Built-In Commands (continued)DescriptionCommandSends a signal to a running process. (Both a regular form and a shell built-in formof kil

Page 143 - Scheduling Jobs

Command-Entry AidsThe following shell command-entry aids are supported by the OSS shell:• “Using Multiple Commands and Command Lists ”• “Using Pipes a

Page 144 - 144 Managing Processes

In the following example, the shell runs each command only if the previous command has executedsuccessfully:$ cmd1 && cmd2 && cmd3 &am

Page 145 - Scheduling Jobs 145

3. The output of grep r-x becomes the input to wc -l, which displays the number of filesmatching the grep criteria in the standard input file.To get t

Page 146 - 146 Managing Processes

QuotingReserved characters are characters such as < > |& ? and *. Reserved characters have specialmeanings to the shell. To use a reserved c

Page 147

more than one filename or pathname that matches the partial name you entered, the shell lists thepossible matches.To activate the filename-completion

Page 148 - Using the -i Flag

OSS Filesets...30Specifying Na

Page 149 - Finding Files (find)

Exporting AliasesThe shell allows you to export the aliases you create. Aliases that are exported are passed to anysubshells that are created so that

Page 150

reexecute them. This feature may save you time because it allows you to reuse long commandsinstead of reentering them.To view the contents of the hist

Page 151 - The pax Utility

To display the command history buffer and edit its contents, use the built-in command fc (fixcommand). The fc command has two formats. The first forma

Page 152 - $ pax -wv -f /G/tape -b 10b

16 pwd 17 cd /u/ben/reports 18 more sales Editing and Executing Command LinesTo display and edit command lines 15 through 18 with the vi editor, enter

Page 153 - The ftp Utility

A .profile file resides in each user’s home directory and contains information that affects onlythat individual user’s shell. The variables and user d

Page 154

Table 8 Variables (continued)DescriptionVariableReturns a random integer between 0 and 32767. Initialize by assigning a numericvalue to RANDOM.RANDOMU

Page 155 - A The vi Editor

Table 9 Default Environment VariablesDefault Value (Applies Only to the /etc/profile File)VariableUnspecifiedCOLUMNSUnspecifiedEDITORUnspecifiedENV/bi

Page 156 - 156 The vi Editor

Setting Variables on the Command LineTo set a variable on the command line, simply enter an assignment statement. For example, youcan create a variabl

Page 157 - Opening a File

$ . ./.profileDisplaying the Values of VariablesYou can display the value of any variable currently set in your shell. To display the value of asingle

Page 158 - Entering New Text

• Display of messages to your workstation• The trap command• Command aliases• History variablesIn the .profile file, an example of which is shown in E

Page 159 - Editing Text

Printing and Formatting ...63Process Management...

Page 160 - Using Advanced Techniques

Table 10 Description of Example .profile File (continued)DescriptionLineSpecifies vi as the default editor for command-line editing at theshell prompt

Page 161 - Copying Text

the system administrator specifies default PATH directories for new users. However, moreexperienced users may need to change these PATH directories.Th

Page 162 - Making Substitutions

2. Use the chmod +x command to give the file x (execute) status. For example, the commandchmod g+x reserve gives execute status to the file reserve fo

Page 163

4 OSS Commands and UtilitiesThis chapter discusses the OSS end-user commands and utilities, file formats, and miscellaneousfiles. (Commands typically

Page 164 - Saving Your Customizations

Utilities Reference Manual and in the online reference pages (sometimes called man pages). Eachreference page documents a single command or utility.Be

Page 165

returns the following:Creates one or more DEFINEs for the current OSS shell.add_define(1)Deletes one or more DEFINEs for the current OSS shell.del_def

Page 166 - B The ed Editor

Displays a calender.cal(1)Removes job requests from the line printer spooling queue.cancel(1)Concatenates or displays files.cat(1)Changes the current

Page 167

Exits the shell (a shell built-in command).exit(1)Replaces tabs or space characters.expand(1)Exports variables (a shell built-in command).export(1)Eva

Page 168 - Saving Part of a File

Processes locale and character map files.localedef(1)Makes entries in the system log.logger(1)Displays the user’s login name.logname(1)Sends files to

Page 169 - Using the r (Read) Subcommand

Removes a directory.rmdir(1)Executes the specified command remotely.rsh(1)Runs processes with Guardian attributes.run(1)Invokes the mkcatdefs utility

Page 170 - 170 The ed Editor

Specifying Terminal Characteristics With the stty Command...88Modifying Your Shell Environment..

Page 171

Removes or lists repeated lines in a file.uniq(1)Expands files compressed by the pack command.unpack(1)Erases parameter values (a shell built-in comma

Page 172 - Finding Text

Removes unnecessary information from executable files.strip(1)Describes a command’s function.whatis(1)ArchivingFollowing is a list of OSS commands and

Page 173

Breaks lines in files.fold(1)Joins the lines of two files.join(1)Links files.ln(1)Lists and generates statistics for files.ls(1)Makes a new directory.

Page 174 - Removing Characters

Printing and FormattingFollowing is a list of OSS commands and utilities for printing and formatting.Removes job requests from the line printer spooli

Page 175 - Using a Context Search

Remote AccessFollowing is a list of OSS commands and utilities for remote access.Transfers files between a local OSS file system and a remote host.ftp

Page 176 - Deleting Multiple Lines

System Management and Configuration InformationFollowing is a list of OSS commands and utilities for system management and configurationinformation.Di

Page 177 - Changing a Single Line

Changes the current working directory.cd(1)Resumes the next iteration of an enclosing loop.continue(1)Deletes one or more DEFINEs for the current OSS

Page 178 - Using Line Numbers

Awaits process completion.wait(1)Tells how a name would be interpreted if used as a command.whence(1)Some shell built-in commands have counterparts th

Page 179

5 Interoperability Between OSS and Guardian EnvironmentsOn the user level, several types of interoperability between the OSS and Guardian environments

Page 180 - Ending the ed Program

The Guardian file system is accessible from the OSS environment through the OSS /G directoryfor local files or the /E directory for files from remote

Page 181 - Running vproc

Changing Your Current Directory...114Using Relative Pathname Notat

Page 182 - Interpreting vproc Output

NOECauses the /E directory to be invisible to the specified command.NOGCauses the /G directory to be invisible to the specified command.NOG:NOECauses

Page 183

The /E indicates that what follows is an Expand filename. The /G indicates that what follows is aGuardian filename. Note that the $ (dollar sign) is o

Page 184 - No action is required

OSS PathnameGuardian Filename/G/p/#pty12$P.#pty12/E/node1/G/vol/subvol/file\node1.$vol.subvol.fileThe $ (dollar sign) in front of the volume name is n

Page 185

gtacl -c 'fup dup subvolume.filename, newsubvolume.filename'To get information about a Guardian subvolume, at the OSS prompt enter:gtacl -p

Page 186

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

Page 187

You can try these (and the other) OSS commands within the Guardian environment, using theexamples that follow as models. However, your results can var

Page 188

This command gets information about a Guardian subvolume. The shell quotes preserve specialcharacters for interpretation by the Guardian processThe gt

Page 189

ps -W name=/G/cmonresults in a display of information on the Guardian process named $cmon similar to the following:HOMETERMPROGRAMFILEUSERID%WTPFRGPRI

Page 190

Guardian Commands and OSS EquivalentsTable 12 lists Guardian commands and their OSS equivalents. Not all Guardian commands havea corresponding OSS com

Page 191 - Glossary

Table 12 OSS Equivalents to Guardian Commands (continued)OSS EquivalentDescriptionGuardian CommandrmDeletes a file.FUP PURGEmvRenames a file.FUP RENAM

Page 192 - 192 Glossary

12 Productivity Tools: grep and find...147Searching Files for Text Patterns (grep)...

Page 193

Table 12 OSS Equivalents to Guardian Commands (continued)OSS EquivalentDescriptionGuardian CommandpsDisplays status of running processes.STATUSkillSto

Page 194 - 194 Glossary

Table 13 Guardian Equivalents to OSS Commands (continued)Guardian EquivalentDescriptionOSS CommandCompiles native mode C and C++programs.c89• NMC for

Page 195

Table 13 Guardian Equivalents to OSS Commands (continued)Guardian EquivalentDescriptionOSS CommandNoneGenerates a formatted messagecatalog.gencatNoneG

Page 196 - 196 Glossary

Table 13 Guardian Equivalents to OSS Commands (continued)Guardian EquivalentDescriptionOSS CommandPURGERemoves directory entries.rmPURGERemoves direct

Page 197

Table 13 Guardian Equivalents to OSS Commands (continued)Guardian EquivalentDescriptionOSS CommandNoneConstructs an argument list and invokesa utility

Page 198 - 198 Glossary

6 Running the OSS ShellA typical OSS environment includes a NonStop system running the NonStop operating system.Most frequently, users are working at

Page 199

If you do not have a password or if you want to change your password, use the PASSWORDutility. A password can contain from one to eight letters, numbe

Page 200 - 200 Glossary

ExplanationFlagStarts a Guardian environment debugging tool.-debugSpecifies the Guardian DEFINE mode for the child process.-defmode on | offSpecifies

Page 201

exitThis will return you to your TACL prompt.To log off from the TACL session, at the TACL prompt enter:logoffEnd the TELNET session. If necessary, re

Page 202 - 202 Glossary

BackupsBackups are done using the pax utility. The backup process for an OSS system is described in theOpen System Services Management and Operations

Page 203

Using the r (Read) Subcommand...169Displaying and Changing the Cu

Page 204 - 204 Glossary

7 Creating FilesThis chapter begins the tutorial part of this guide, where you are introduced to many of the frequentlyused OSS user commands and util

Page 205

Two text editing programs are available with Open System Services: vi and ed. Each has its ownmethods of displaying text, as well as its own set of su

Page 206 - 206 Index

4. Close the file file1 by pressing the Esc key (to exit from insert mode) and then typing a: (colon) followed by the letter w and pressing Return (:w

Page 207

8 Managing FilesThis chapter discusses how to manage OSS files. After reading this chapter, you will be able to:• List files• Display and print files•

Page 208 - 208 Index

You can also list individual files and subdirectories in your current directory using the commandformat:ls filenameThe filename entry can be the name

Page 209

The following example shows a long (-l flag) listing of a current directory. (The name larry isthe owner of the files. Your user name will replace lar

Page 210 - 210 Index

The general format of more and cat is the following:command filenameThe command entry is either more or cat. The filename entry can be the name of one

Page 211

to take the output from the pr command and use it as input to the more command. For moreinformation on pipes, see Chapter 3 (page 31).Sometimes you ma

Page 212 - 212 Index

Printing FilesThe OSS print utilities include three utilities: lp, lpstat, and cancel. The lp utility sends theprint job requests to the Guardian spoo

Page 213

The lpstat utility writes, to the standard output device, information about the current status ofthe online accessible printer devices and the status

Commentaires sur ces manuels

Pas de commentaire