-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Description
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();
}
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels