Entering content frame

Background documentation SYSTEM Locate the document in its SAP Library structure

This group of commands concerns the SAP J2EE Engine general administration. You do not have to add these commands, as they are embedded in the Shell environment.

ADD

Syntax

ADD <groupName>

Arguments

 

<groupName>

Adds the specified group of commands to the groups activated by the user – that is, activates this group of commands.

Description

If no arguments are specified, displays all activated groups of commands.

 

CAT

Syntax

CAT <parameters> <fileName>

Arguments

 

-r <S1> <S2>

Requires two string parameters following it. Everywhere in the input stream, the second string replaces the first one.

-n

Prints the number of lines in the input stream.

-c

Prints the number of symbols in the input stream.

<fileName>

The relative path from <SAPj2eeEngine_install_dir>/<server or dispatcher> to the file.

Description

This command prints the file [fileName] to the standard output. If the file is not pointed, the command prints the standard input (for end of the input stream are used EOF or CTRL-K, according to the operating system).

 

CLS

Syntax

CLS

Description

Clears the screen.

 

ECHO

Syntax

ECHO <parameter>*

Arguments

 

[-dir dirName]

An arbitrary string.

Description

This command prints all parameters to the standard output. The symbol * is a meta symbol and means that there is no limit about the number of parameters.

 

EXEC

Syntax

EXEC [options] <commandName> [parameters]*

Arguments

 

-b

Starts the native process in background mode. If this option is not specified, starts the process in foreground mode.

<commandName>

Name of the system command.

[parameters]*

Parameters of the system command.

Description

Executes a system command.

 

EXIT

Syntax

EXIT

Description

This command stops the current process. Equivalent to QUIT.

 

GET

Syntax

GET <$variable>

Description

Reads a line from the standard input stream and sets it as a value of the specified variable.

 

GREP

Syntax

GREP [option]... <pattern> [file]...

Arguments

 

-p <file>

Obtains <pattern> from the specified file.

-i

Ignores case distinctions.

-w

Forces “pattern” to match only whole words.

-x

Forces “pattern” to match only whole lines.

-v

Selects non-matching lines.

-b

Prints the byte offset with output lines.

-n

Prints line number with output lines.

-f

Prints the filename for each match.

-d <action>

How to handle directories. <action> can be “read” or “recursive.”

-l

Only prints “file” names containing no match.

-m

Only prints “file” names containing matches.

-c

Only prints a count of matching lines per “file.”

-e <num>

Prints “num” lines of leading context.

-t <num>

Prints “num” lines of trailing context.

[file]

If not specified, the command reads from the standard input.

Description

Searches for a pattern in each file or standard input.

 

IMPORT

Syntax

IMPORT <commandName> <className>

Arguments

 

<commandName>

The name of the command to be imported.

<className>

The name of the class that executes the command.

Description

Imports a system command.

 

KILL

Syntax

KILL <processID>

Arguments

 

<processID>

The ID of the process to be killed.

Description

Kills the process with the specified ID.

 

LOADENV

Syntax

LOADENV <fileName>

Arguments

 

<fileName>

The file where the properties are stored.

Description

Reads all properties from the specified file and loads them into the current Shell environment.

 

MAN

Syntax

MAN [parameter] [groupName] [commandName]

Arguments

 

-g

If no other parameters are specified, displays all activated and deactivated groups of commands. If [groupName] is specified, the command displays all commands in the group.

[groupName]

Specifies the group name.

[commandName]

The name of the command.

Description

This command displays a help message for the specified command. If no parameters are specified, this command displays all activated commands.

 

MORE

Syntax

<command> <parameters>: MORE

Arguments

 

-r number

Specifies the number of rows in the console, where number is an integer.

-c number

Specifies the number of columns in the console, where number is an integer.

Description

Redirects the output from the specified command to the input formatted according to the -r and -c properties. Their default values are taken from the Shell environment.

 

PS

Syntax

PS

Description

Displays all current processes.

 

QUIT

Syntax

QUIT

Description

This command stops the current process. Equivalent to EXIT.

 

REIMPORT

Syntax

REIMPORT [parameters] <commandName>

Arguments

 

-d

Removes the specified command.

Description

If no other parameters are specified, the command <commandName> is reloaded.

 

REMOVE

Syntax

REMOVE [groupName]

Arguments

 

[groupName]

The name of the group of commands to be removed.

Description

Removes the specified group of commands, that is, deactivates this group of commands. If no arguments are specified, all activated groups of commands are displayed.

 

RUN

Syntax

RUN [-b] <fileName>[.scr] [parameters]*

Arguments

 

[-b]

Starts the script in background mode. If this option is not specified, starts the script in foreground mode.

<fileName>

A relative path from <SAPj2eeEngine_install_dir>/<server or dispatcher> to the script file.

[parameters]*

The values of the script file variables.

Description

Starts a script process.

 

SAVEENV

Syntax

SAVEENV <fileName>

Description

Saves the environment (system variables and imported commands) in <fileName>.

 

SET

Syntax

SET [$Variable = (variable | expression | String | Word)*]

Arguments

 

variable

Sets the value of this variable to be the value of the variable on the right side of the equation.

expression

Calculates the given expression and sets the result as a value of the specified variable.

String

Sets this String as a value of the specified variable.

Word

Sets this Word as a value of the specified variable.

Description

Sets a value to the specified variable. If the command has no parameters, it displays all available variables and their values.

 

 

Leaving content frame