• No results found

49 DIRECTORY NAVIGATION

In document SPS VOS Command Shells User Manual (Page 49-53)

SPS expands the input in the path name field to a full valid star name by executing the following steps:

SPS special commands (move-up, move down requests, cycle) SPS-Saved Path Names (see configuration)

Stratus functions (e.g., (current_dir)>* or (home_dir)>*) Relative path names (e.g., <<*.pl1)

Abbreviations defined in you process' abbreviation file.

Move Up/Down

To move the current directory up one level in the directory hierarchy tree use the Move Up Dir Shorthand Request. To move the current directory down one level in the directory hierarchy tree use the Select Dir Internal Command. Put the sign (default is '>') next to the directory name you wish to go down to and press the Enter key. VS will then:

Change the path name to the selected directory name.

Change your current directory to the new one.

List all directories under the new current_dir.

If the new directory has no subdirectories, SPS will automatically change the Type field to Files and will list the names of the files under the selected directory.

Cycle / Cycle-Back

SPS keeps track of the last twenty path names and the Type field associated with them. Use the Cycle or the Cycle-Back keys to cycle through the paths list until the desired path name is displayed. Press the Enter key to view the objects list. This feature is particularly useful when you need to switch back and forth from one directory to another.

50 Using

Saved Paths

Using Saved Path names is easiest and fastest way to navigate between the directories. Type the abbreviation and SPS will replace it with the saved path name and retrieve the objects. It is recommended that you define abbreviations for the directories that are often used. Up to 100 abbreviations can be defined in SPS. For more details see the explanation on the Save Path Name Shorthand Request.

The Directory Tree

SPS-TREE is a built-in program that will give you a tree-like graphic presentation of your directory structure. The root directory for the TREE program will always be your current directory. The user can page up and down, move the pointer to any directory and then change your current_directory by pressing the Enter key.

EXECUTING COMMANDS

Commands are entered in the Command Line field and/or the Operations Codes Area next to the object names. Commands can be executed in the foreground with or without the -form option or started as subprocesses. (Refer to the explanation of "Subprocesses.")

OPERATION CODES AREA

Position the cursor next to the object name, type any command and press the Enter key. You can use any command or an abbreviation as defined in your abbreviation file. (e.g e-edit, d-display).

You can enter up to 38 commands at one time. The commands are executed in the same order in which the objects are displayed.

If you want a command to be executed with the -form option, press the display-form key. The marked commands will be displayed in reverse video and will be executed with the -form option.

The insert-saved key can be used to insert the last entered command. Saving is done

automatically as you type. SPS will echo to the screen the command and the file name as they

51

are being executed. After the completion of execution you will be prompted to press the Enter key to return to SPS or if you wish, you can press any key to cancel out of SPS. If the command name is longer than five characters or if you want to execute the same command on many files, use the Global Command Shorthand Request.

INTERNAL COMMANDS

There are nine Internal Commands handled by SPS. The default values can be changed through the configuration procedures. These commands are used in the Operations CodesArea. The Internal Commands are:

> - Select Directory

When displaying directories, position the cursor next to any directory, type the select_directory sign and press Enter. VS will then take you down to the

selected directory. For more information see the See explanation under Move Up/Down requests.

* - Generic Command

Use the Generic Command if you do not have enough room to enter a command. SPS will display the object name selected and will prompt you to enter the required command. It is also useful to use this command if you want to perform more than one operation on a single object. All you have to do is enter the number of required operations next to the '*' command.

x - Execute Command

Use this command to execute any command macro (.cm) or program module (.pm) files.

xf - Execute Command with -form

Works exactly like execute command but in addition it displays the command's CRT form before executing it.

? - Where Using this command will give information such as which include files your compiler picks up or which objects are used by the bind command etc. When

52

Command listing Commands / Objects / Includes use this command to display the full path of the object.

v-Browse Command

Evokes the SPS/Browser program.

s-Stop Process Stops the marked process(es).

deb-Debug Process

When listing processes use this command to start the mp_debug program. SPS will issue the following commands for you and put you in debug mode.

include_process [selected process]

use_process 1 suspend_process 1 trace

p - Process Priority

When listing processes use this command to set / reset priorities.

Example:

To set priority to 3 enter 'p3' next to the process name and press the Enter.

53

In document SPS VOS Command Shells User Manual (Page 49-53)

Related documents