Lasso Soft Inc. > Home

[OS_Process->Write]

[OS_Process->Write] writes data to the standard input of the native process. A byte stream is written directly to the native process. A string is converted using the character set which was set using [OS_Process->SetEncoding]. If no character has been set then UTF-8 data is sent to the native process.

The [OS_Process->CloseWrite] tag can be used to close the standard input. Some processes will poll for input until the standard input is closed and will then process that input making a result available to [OS_Process->Read] or [OS_Process->ReadString].

  • Syntax
  • Parameters
Var: 'myProcess' = (OS_Process: '/bin/cat');
$myProcess->(Write: 'This is a test\n');
$myProcess->(Write: 'This is a test\n');
$myProcess->CloseWrite;
encode_html: $myProcess->Read;
$myProcess->Close;
Required Parameters
Data The byte stream or string data to write to the native process.
Examples

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

Tag Link [OS_Process->Write] 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 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft