[Cuis-dev] vm command line parameters in Windows

Nicola Mingotti nmingotti at gmail.com
Mon Jun 13 08:56:52 PDT 2022


I wrote the issue in github, let's see.

https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/639

bye



On Mon, Jun 13, 2022 at 5:13 PM Nicola Mingotti <nmingotti at gmail.com> wrote:

>
> Hi Gerald,
>
> putting all together i found where my mistake was, i was using '..' for
> quoting instead of " ... ".
> Windows ComandShell does not like it and dies silently.
>
> . So, it seems all works, except the "-headless", as you say.
> . I confirm also the output gets written only if I run with
> SqeuakConsole.exe
>
> I am going open a issue in GitHub on OpenSmalltalkVM if nobody knows the
> trick
> to make "-headless" work. This is quite important, it is not nice at all
> to see
> ghost windows running around every time a script gets called (maybe in
> backgroud).
>
>
> bye
> Nicola
>
>
>
>
>
>
>
> On Mon, Jun 13, 2022 at 4:11 PM Nicola Mingotti <nmingotti at gmail.com>
> wrote:
>
>> Thank you Gerald ! let me put together your example, the one i found and
>> do some testing.
>> I should be back in a few hours.
>>
>> On Mon, Jun 13, 2022 at 3:15 PM Gerald Klix <cuis.01 at klix.ch> wrote:
>>
>>> Hi Nicola,
>>>
>>> It isn't a big problem. I could not get it working with the headless
>>> stuff,
>>> but otherwise a batch file with this contents works:
>>>
>>> IF NOT EXIST Image\Haver6.0-5213.image VM\SqueakConsole -headless
>>> Image\Cuis6.0-5171.image -r Haverize --integrate
>>> VM\SqueakConsole Image\Haver6.0-5213.image %*
>>>
>>> I presume you try to display text on the console, which fails with an
>>> exception,
>>> if you use Squeak.exe.
>>> SqueakConsole.exe, however does the trick.
>>>
>>>
>>> HTH,
>>>
>>> Gerald
>>> On Jun 13 2022, at 12:34 pm, Nicola Mingotti via Cuis-dev <
>>> cuis-dev at lists.cuis.st> wrote:
>>>
>>> Hi guys,
>>>
>>> I am exploring the possibility of running Cuis scripts instead
>>> of Python scripts in Windows.
>>>
>>> I know this is more a VM question, just in case you already found
>>> and solved this problem before.
>>>
>>> In principle there aren't big problems, if not that i can't convert this
>>> Unix line into a working Windows batch file.
>>> ---- Linux, ok, working
>>> $> ./sqcogspur64linuxht/squeak -vm-display-null
>>> Cuis-Smalltalk-Dev/borghiSerialExpoter.image -d 'ScriptXMLToSerialIM9500
>>> test1'.
>>> ----
>>>
>>> The best approximation i got working is this. So, i miss
>>> 1. Possibility to run special code with "-d" or "-s"
>>> 2. possibility not to see the windows "-vm-display-null"
>>> --- starter.bat --------------
>>> echo off
>>> C:\CUIS\squeak.cog.spur_win64x64\Squeak.exe
>>>  C:\CUIS\borghiSerialExporter.image
>>> REM pause
>>> -----------------------------------------------
>>>
>>> please let me know if if you know how to fix this.
>>>
>>> bye
>>> Nicola
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Cuis-dev mailing list
>>> Cuis-dev at lists.cuis.st
>>> https://lists.cuis.st/mailman/listinfo/cuis-dev
>>>
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220613/a0f187ff/attachment.htm>


More information about the Cuis-dev mailing list