Lasso Soft Inc. > Home

[OS_Process->Open]

[OS_Process->Open] accepts three parameters which open a native process. These include the required path to the executable to call, an optional array of command line parameters, and an optional array of environment variables to set. Alternately, these same three parameters can be passed directly to the [OS_Process] creator.

  • Syntax
  • Parameters
Var: 'myProcess' = (OS_Process);
$myProcess->(Open: '/bin/ls', (Array: '.'));
Encode_HTML: $myProcess->Read;
$myProcess->Close;
Required Parameters
Executable Path The native file path to the executable to call.
Optional Parameters
Parameter Array An array of command line parameters to pass to the executable.
Environment Variables An array of pairs defining environment variables which should be defined before calling the executable.
Examples

See the Lasso 8 Language Guide for examples of how to use this tag.

Tag Link [OS_Process->Open] Category OS Process
Type Member Data Source Any
Support Preferred Version 8.5
Output Type None Security None
Implementation Sets Lasso 8.5

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft