[squeak-dev] Re: calling a external executable

arunabh2k arunabh.trivedi at gmail.com
Wed Jan 12 13:07:42 UTC 2011


Hi Richo,

Thanks for the direction I was able to call external executable through
processwrapper in windows.
I hope this would be able to work on linux/Mac as well but currently I am
more focused on windows.

As I was new in this, I would like to sum-up the steps which I did to make
it work:
1. Copy the processWrapperplugin.dll to the directory where my squeak.exe
exist.
2. go to menu and check the files list browse to the processWrapper.1.cs
provided by Richo and apply the change.
3. Use following code:
ProcessWrapper new useStdout;  
startWithShellCommand: 'path_to_executable\executable.exe';  
upToEnd;  
waitForExitFor: 5000;  
exitCode.

And this did the part of calling the executable which I was having. Also I
was using squeak vm version 3.11.5.
I now have to make changes as per my requirement.

Special Thanks to Richo, Dave, Bert, Jens, Levente as this was POC for me
and now I can go forward about learning scratch/squeak programming.

Jens I would still look forward for your solution.

Thanks,
Arunabh

-- 
View this message in context: http://forum.world.st/calling-a-external-executable-tp3207051p3213893.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.



More information about the Squeak-dev mailing list