simple-ssh
simple-ssh copied to clipboard
Unable exec linux command of options
Can you use it or do I use it in the wrong way?
ssh.exec('rm -r', {
args: [remotes.scriptPath],
err: (err) => console.log('removeOldScript', err),
out: (res) => console.log('removeOldScript', res),
}).exec('mkdir -p', {
args: [remotes.scriptPath],
err: (err) => console.log('removeOldScript mkdir', err),
out: (res) => console.log('removeOldScript mkdir', res),
}).start()

Sorry, I don't understand how the screen shot is related to your code.
I believe he wishes to pass in parameters...