[OS_Process->Close] closes Lasso's connection to the native process. Both the standard input and the standard output of the native process are closed. Most processes will exit when this method is called. If the process should be left running then [OS_Process->Detach] should be used instead of this method. This method is called implicitly when the [OS_Process] object is destroyed at the end of a Lasso page.
local(myProcess = OS_Process('/bin/cat'))
#myProcess->SetEncoding('iso-8859-1')
#myProcess->Write('This is a test\n')
#myProcess->CloseWrite
encode_html(#myProcess->Read)
#myProcess->Close
No examples 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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments