select_rs_command

Use the select_rs_command command to retrieve a restricted shell command in the currently selected zone from Active Directory, store it in memory, and set it as the currently selected restricted shell command for other ADEdit commands. After you select the restricted shell command to work with, it remains selected until you select a different restricted shell command, change the currently selected zone, delete the restricted shell command, or end the ADEdit session.

If you use ADEdit commands such as set_rsc_field to change settings for the selected restricted shell command, you must save the restricted shell command using the save_rs_command command for your changes to take effect in Active Directory. If you select another restricted shell command or end the ADEdit session before saving the currently selected restricted shell command, your changes will be lost.

You can only use the select_rs_command if the currently selected zone is a classic zone.The command does not work in other types of zones.

Zone type

Classic only

Syntax

select_rs_command rs_cmd

Abbreviation

slrsc

Options

This command takes no options.

Arguments

This command takes the following argument:

Argument Type Description

rs_cmd

string

Required. Specifies the name of the restricted shell command to select.

Return value

This command returns nothing if it runs successfully.

Examples

select_rs_command rsc1

This command looks for the restricted shell command name rsc1 in the current zone. If rsc1 is found in the current zone, it becomes the currently selected context for subsequent commands.

Related commands

Before you use this command, you must have a currently selected zone stored in memory. The following commands enable you to view and select the restricted shell command to work with:

  • get_rs_commands returns a Tcl list of restricted shell commands in the current zone.
  • list_rs_commands lists to stdout the restricted shell commands in the current zone.
  • new_rs_command creates a new restricted shell command and stores it in memory.

After you have a restricted shell command stored in memory, you can use the following commands to work with that restricted shell command:

  • delete_rs_command deletes the selected command from Active Directory and from memory.
  • get_rsc_field reads a field value from the currently selected command.
  • save_rs_command saves the selected command with its current settings to Active Directory.
  • set_rsc_field sets a field value in the currently selected command.