[Newbies] Introduction into OSProcess

Nicola Mingotti nmingotti at gmail.com
Mon Aug 5 16:44:07 UTC 2019


> @Nicola: Strange, running your first example made my Squeak cursor flickering until I interrupted the command ...


Double check:
-------
p := PipeableOSProcess command: 'ls -la'.
p output.
-------

1] In MacOS 10.14.5, confirmed to work.
2] In FreeBSD 12 (Linux emulation 64bit) , confirmed to work

Can't tell you much more unfortunately.

bye
Nicola




> On Aug 5, 2019, at 12:48 AM, Thiede, Christoph <Christoph.Thiede at student.hpi.uni-potsdam.de> wrote:
> 
> Hi John,
> 
> [(OSProcess command: 'notepad.exe 2>&1') value] passes '>2&1' as an argument to notepad.exe. If I use PipeableOSProces instead, there is only shown an empty cmd window, no matter what the command is.
> 
> @Nicola: Strange, running your first example made my Squeak cursor flickering until I interrupted the command ...
> 
> Best,
> Christoph
> Von: Beginners <beginners-bounces at lists.squeakfoundation.org> im Auftrag von John-Reed Maffeo <jrmaffeo at gmail.com>
> Gesendet: Montag, 5. August 2019 00:48:49
> An: A friendly place to get answers to even the most basic questions about Squeak.
> Betreff: Re: [Newbies] Introduction into OSProcess
>  
> Christoph,
> 
> You are more fortunate than I am. I tried it on my Win 7 box and it caused a crash.
> 
> There is a way to send output to stdout and stderr <https://support.microsoft.com/en-us/help/110930/redirecting-error-messages-from-command-prompt-stderr-stdout> . Try adding that to your command and see what you get.
> 
> Reminder to all beginners, "Save early and save often"
> 
> -jrm
> 
> On Sat, Aug 3, 2019 at 10:50 AM Christoph Thiede <christoph.thiede at student.hpi.uni-potsdam.de <mailto:christoph.thiede at student.hpi.uni-potsdam.de>> wrote:
> Hello,
> 
> I am trying to run a simple shell command using OSProcess:
> 
> ExternalWindowsOSProcess command: 'taskmgr.exe'
> 
> I'm afraid it "does not work", so after evaluating this expression, no
> window opens and also no icon appears in the systray. If I open cmd.exe and
> type taskmgr.exe there, taskmgr opens.
> 
> However, the following works as expected:
> 
> ExternalWindowsOSProcess command: 'notepad.exe'
> 
> Using absolute paths did not change the behavior.
> 
> I installed the latest OSProcess version via SqueakMap. Is this a bug, or is
> it me? Thanks in advance!
> 
> Christoph
> 
> 
> 
> --
> Sent from: http://forum.world.st/Squeak-Beginners-f107673.html <http://forum.world.st/Squeak-Beginners-f107673.html>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org <mailto:Beginners at lists.squeakfoundation.org>
> http://lists.squeakfoundation.org/mailman/listinfo/beginners <http://lists.squeakfoundation.org/mailman/listinfo/beginners>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/beginners/attachments/20190805/df69e98d/attachment-0001.html>


More information about the Beginners mailing list