Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Remote Command Execution #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Support Remote Command Execution #13

wants to merge 2 commits into from

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