Hp NonStop G-Series Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Hardware de computador Hp NonStop G-Series. HP NonStop G-Series User Manual Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 213
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 0
1 2 3 4 5 6 ... 212 213

Resumo do Conteúdo

Página 1 - Abstract

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

Página 2

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 8 - 8 Contents

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 17 - Related Information

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 23 - Application Development

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

Página 24 - OSS Processes

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

Página 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

Página 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

Página 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

Página 28 - OSS Pathnames

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 40 - Command History

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

Página 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

Página 42 - 42 The OSS Shell

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

Página 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

Página 44

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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.•

Página 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

Página 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

Página 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.

Página 57

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

Página 58

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

Página 59

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 65

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

Página 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

Página 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

Página 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

Página 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

Página 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.

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 78

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

Página 79

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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.

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 93 - 8 Managing Files

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

Página 94

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

Página 95

RecoveryNo action is required.184 Displaying Version Information With vproc

Página 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

Página 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

Página 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

Página 99

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

Página 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

Página 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

Página 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

Página 103 - Renaming Files

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

Página 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

Página 105 - Sorting File Contents (sort)

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 113 - 9 Managing Directories

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

Página 114 - Changing Directories (cd)

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

Página 115

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

Página 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

Página 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

Página 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

Página 119 - Removing Multiple Directories

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

Página 120 - 120 Managing Directories

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

Página 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

Página 122

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

Página 123 - Default Permissions

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

Página 124

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

Página 125 - Changing File Permissions

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

Página 126 - Setting Absolute Permissions

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

Página 127 - $ ls -l file3

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

Página 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

Página 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

Página 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

Página 131

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

Página 132

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

Página 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

Página 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

Página 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

Página 136

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

Página 137

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

Página 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.

Página 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,

Página 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

Página 141 - The jobs Command

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

Página 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

Página 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

Página 144 - 144 Managing Processes

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

Página 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

Página 146 - 146 Managing Processes

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

Página 147

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

Página 148 - Using the -i Flag

OSS Filesets...30Specifying Na

Página 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

Página 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

Página 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

Página 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

Página 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

Página 154

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

Página 155 - A The vi Editor

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

Página 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

Página 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

Página 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

Página 159 - Editing Text

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

Página 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

Página 161 - Copying Text

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

Página 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

Página 163

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 170 - 170 The ed Editor

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

Página 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

Página 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

Página 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.

Página 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

Página 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

Página 176 - Deleting Multiple Lines

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

Página 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

Página 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

Página 179

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

Página 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

Página 181 - Running vproc

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

Página 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

Página 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

Página 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

Página 185

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

Página 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

Página 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

Página 188

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

Página 189

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

Página 190

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

Página 191 - Glossary

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

Página 192 - 192 Glossary

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

Página 193

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

Página 194 - 194 Glossary

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

Página 195

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

Página 196 - 196 Glossary

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

Página 197

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

Página 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

Página 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

Página 200 - 200 Glossary

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

Página 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

Página 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

Página 203

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

Página 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

Página 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

Página 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

Página 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•

Página 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

Página 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

Página 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

Página 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

Página 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

Página 213

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

Comentários a estes Manuais

Sem comentários