Skip to content

Callback was already called error is shown on running the code  #11

Description

@paik1

On executing the below code i get "Callback was already called" error even after the commanfd gets executed.Can someone help me with some solution as I am new to node

var rexec = require('remote-exec');

var connection_options = {
port: 22,
username: 'username',
password: 'password'
};

var hosts = [
'host ip'
];

var cmds = [
'more Documents\SSH.txt'
];

rexec(hosts, cmds, connection_options, function(err){
if (err) {
console.log(err);
} else {
console.log('Great Success!!');
}
});

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions