Skip to content

Support Remote Command Execution#13

Open
Kneckter wants to merge 2 commits intomasterfrom
cmd
Open

Support Remote Command Execution#13
Kneckter wants to merge 2 commits intomasterfrom
cmd

Conversation

@Kneckter
Copy link
Collaborator

Update to support the execution of pre-define commands. Takes the type of cmd to identify the command alias to execute. Since this can be a big security risk, only pre-define commands are allowed and no parameters are taken by the listener. All parameters need to be set in the config file. There are buffer limits to to errors that this can handle. If you can receive over 200kb of errors, use the nohup command before your command so it outputs to nohup.out in the executing directory.

Use the bool to disable/enable to option to allow remote command execution.

See the example file for remotely executing Redux.

See RDMM #19 for the related PR to support this update.

@clburlison
Copy link
Contributor

I'm using the nohup option and running into the following error. Using the exact redux-f example. Does not look like nohup is actually writing to a file. Any ideas?

Failed to execute command redux3 on remote listener XXX. Error: 
Failed to execute command: redux3
RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stderr maxBuffer length exceeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments