-
Notifications
You must be signed in to change notification settings - Fork 744
asynchronous exec #34
Copy link
Copy link
Closed
Description
Hi,
I am trying to use the exec function in an asynchronous code as follows
shell = require 'shelljs'
shell.exec('ssh -l username host \"cd Desktop; touch example.txt\"', (code, output) ->
console.log code
)
Although the command is executed successfully, it doesn't print the code. So I have no way in my code to know what happened to the ssh command. Is there a different way of calling exec asynchronously?
Note that the synchronous case works perfectly
Thanks
José
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels