Ferreteria/v0.6/fx/RunProcess: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v0.6‎ | fx
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 12: Line 12:
{{!-!}} <code>{{l/ver/clade/full|IO\Aspect\Connx\Plug|Chain}}</code>
{{!-!}} <code>{{l/ver/clade/full|IO\Aspect\Connx\Plug|Chain}}</code>
|
|
| <code>return $this->{{l/ver/fx|OSock}}()->{{l/ver/fx|RunProcess}}($saCmd);</code>
| <code>return $this->{{l/ver/fx|OSock}}()->{{l/ver/fx|OPlug}}()->{{l/ver/fx|RunProcess}}($saCmd);</code>
| This can't work because <code>OSock()</code>'s return-type ({{l/ver/clade/full|IO\Aspect|Socket}}) doesn't have a <code>RunProcess()</code> method.


{{!-!}} <code>{{l/ver/clade/full|IO\Aspect\Connx\Plug|Shell}}</code>
{{!-!}} <code>{{l/ver/clade/full|IO\Aspect\Connx\Plug|Shell}}</code>

Latest revision as of 19:55, 7 December 2025

About

  • Definition: public function RunProcess(string|array $saCmd) : ProcIface

Usage

clade require implement call notes
IO\Aspect\Connx\Plug yes prompt-stub
IO\Aspect\Connx\Plug\Chain return $this->OSock()->OPlug()->RunProcess($saCmd);
IO\Aspect\Connx\Plug\Shell ProcClass::FromCommand($saCmd);, mostly
IO\Aspect\Connx\Plug\Shell\Remote\SSH sends output of $this->WrapCommand($saCmd) on to parent
Sys\Data\Engine\schema\Ops\MyMar in DoImport(): $oProc = $oConnx->OPlug()->RunProcess($sCmd);