Re: NativeBoost and standard out
Posted by
Emilio Oca-3 on
Feb 06, 2014; 7:05pm
URL: https://forum.world.st/Fwd-NativeBoost-and-standard-out-tp4732117p4742008.html
Hi Esteban
> I recommend you to take a look at this:
>
http://smalltalkhub.com/#!/~OS/OS-Windows> there can be a solution (not sure, because I never used it)
Yes I did, I got something like this
si := WinStartupInfo new.
si wShowWindow: 0.
pi := WinProcessInformation new.
WinProcess createProcess: aCommand startupInfo: si processInformation:
pi.
[ (WinProcess waitForSingleObject: pi hProcess timeout: 10) > 0 ]
whileTrue: [
(Delay forMilliseconds: 10) wait.
].
pi hProcess closeHandle.
pi hThread closeHandle.
That gives me some synchronicity betwtenn several of these proceses without
freezing the image
aCommand may be...
'sqlplus -S usr/pass@QA @V:\work\suite.sql > proc.log' works but doesn't
writes into proc.log
'c:\path\test.bat > proc.log' works as expected
I am looking for a way to get at least the sql sentence stdout writen into a
file.
> Other possibility is not using NB but OSProcess:
>
http://www.squeaksource.com/OSProcess.html> hope it solves your problem.
I am exploring this now, thanks
> cheers,
> Esteban
Best
Emilio
--
Best regards,
Igor Stasenko.