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.
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.
ptdeploy RunCommand help
The following screen shot depicts pictorially about the working of help command.
kevell@corp:/# ptdeploy 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: ptconfigure run-command --yes --command="ls -lah /tmp" --run-as-user="ubuntu" --background
------------------------------
End Help
******************************
The syntax used for specifying the run command in shown below.
ptconfigure 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. |
The syntax and table as described above can helps the user how to use the run command.