Run Command

Synopsis

The run command modules enables the users to execute an operating system command. This is mainly be used in an Autopilot. Using this run command the user can specify the command, name of the user and also to run the either in background or front-end. Let us see the uses of run command.

Help Command

The help command describes the uses of run command, its major functionality, its alternative parameters, the commands used for executing a command, and also about the syntax for specifying the command, name of the user and also to run the either in background or front-end. The syntax used for declaring the help command is shown below.

cleopatra RunCommand help

The following screen shot depicts pictorially about the working of help command.

kevells@corp:/# cleopatra RunCommand help
******************************


 This allows you to execute an Operating System command. This would primarily be used in an Autopilot.

 RunCommand, runcommand, run-command

       - execute
       Execute a Command
       example: cleopatra run-command --yes --command="ls -lah /tmp" --run-as-user="ubuntu" --background

------------------------------
End Help
******************************

How to use Run command

The syntax used for specifying the run command in shown below.

cleopatra run-command --yes --command="ls -lah /tmp" --run-as-user="ubuntu" --background
Parameter Function Usage
command=”ls -lah /tmp” It allows the user to specify the command and its purpose. By using this, the user can specify their own command as per their requirements.
run-as-user=”ubuntu” By using this the user can specify the name of the user. By using this, the user can specify their required user login as per their requirements.
” –background It allows the user to specify where to run the particular command either in background or in the front-end.| By using this, the user can specify their platform of usage as per their requirements.

Benefits

  • The parameters used for declaring help command, installation are not case sensitive which is an added advantage while compared to others.
  • It is well-to-do in both Cent OS and as well as in Ubuntu.
  • The users can specify the command, name of the user and also to run the either in background or front-end.
  • The help command guides the users in how to execute the run command an also its purpose.
comments powered by Disqus

Edit this document!

This file can be edited directly through the Web. Anyone can update and fix errors in this document with few clicks -- no downloads needed.

  1. Go to Run Command on GitHub.
  2. Edit files using GitHub's text editor in your web browser (see the 'Edit' tab on the top right of the file)
  3. Fill in the Commit message text box at the bottom of the page describing why you made the changes. Press the Propose file change button next to it when done.
  4. Then click Send a pull request.
  5. Your changes are now queued for review under the project's Pull requests tab on GitHub!

For an introduction to the documentation format please see the reST primer.