Skip to content

Is the run method supposed to work with SFTP? #49

Open
@ewstefan

Description

@ewstefan

I can retrieve files from my sftp via. This works:

$contents = SSH::into('my_sftp')->getString('filename.csv');

However, I can't get the run method to work:

$commands = ['ls'];

SSH::into('my_sftp')->run($commands, function($line)
{
// this callback is never called
 echo $line.PHP_EOL;
 });

Furthermore, status is always === false, in both cases above.

$status = SSH::into('banz_sftp')->status();

Thanks for any pointer or help!
Stefan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions