Lasso Soft Inc. > Home

[ OS_Process->CloseWrite ]

Method

[OS_Process->CloseWrite] closes the standard input of the native process. Some native processes will accept multiple writes and wait until the standard input has been closed before performing an action on the incoming data and returning a result. Once the standard input of a process has been closed there is no way to re-open it without launching the native process again using [OS_Process->Close] and [OS_Process->Open].

  • Syntax
local(myProcess = OS_Process('/bin/cat'))
#myProcess->SetEncoding('iso-8859-1')
#myProcess->Write('This is a test\n')
#myProcess->CloseWrite
encode_html(#myProcess->ReadString)
#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