Description: Runs a script with "screen" in the background or under a plain BASH under a given user. The script can be executed on the local machine "localhost" or a remote client that is accessible via SSH with a public key and without a password.
Parameter:
- clientNameOrIP: The name of the client or localhost or an IP.
- jobName: name of the job screen should show
- cmds: the commands of the script
- user: user the script should be run under
- runInScreen: Set to true if the execution should be done in "screen". False executes it under the normal BASH.
Returns:
- The output of the screen (only available on direct output if $runInScreen is false.
root
2015-09-06