Lasso Soft Inc. > Home

[ os_process->write ]

Method

[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] method 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
local(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
Examples

No examples found

Recent Comments

No Comments found

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