simple-ssh icon indicating copy to clipboard operation
simple-ssh copied to clipboard

Unable exec linux command of options

Open lynings opened this issue 8 years ago • 2 comments

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()

image

lynings avatar Jan 04 '18 01:01 lynings

Sorry, I don't understand how the screen shot is related to your code.

mikecluck avatar Jan 04 '18 01:01 mikecluck

I believe he wishes to pass in parameters...

gurpal2000 avatar Sep 12 '18 21:09 gurpal2000