Skip to content

Copy script to remote and execute OR create command object from local script #103

@ptg1792

Description

@ptg1792

Hi there,

First of all thank you so much for creating this library. This is awesome, really easy to use. We are able to use it with minimal efforts. Now we are stumbling upon a use case where we need to execute a script on the remote server which is present at local.
I saw the Bash script on the fly part https://www.npmjs.com/package/ssh2shell#bash-scripts-on-the-fly- and tried to read the file and create the command array on the go but wasn't able to. :(
Is there any way, we can directly copy the file to remote server or command array can take input of local shells script?

Please let me know if any further information is required.

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