Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to disconnect manually #72

Open
schrink opened this issue Nov 24, 2018 · 1 comment
Open

Is there a way to disconnect manually #72

schrink opened this issue Nov 24, 2018 · 1 comment

Comments

@schrink
Copy link

schrink commented Nov 24, 2018

I have a long running process and SSH should be disconnected once I get certain sting in the output. Right now I wait for process to timeout, but this is not a good solution. It there a way to close the connection manually?

\SSH::run([$command], function($line){
            if(strpos($line.PHP_EOL, 'Finished)) {
                Log::info("Process finished");
               \\ something like SSH::close();
            }
        });
@elmehdiabdi-src
Copy link

i'm looking for it too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants