[Newbies] Introduction into OSProcess

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Mon Aug 5 07:48:19 UTC 2019


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
_______________________________________________
Beginners mailing list
Beginners at lists.squeakfoundation.org<mailto: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/e15a4de6/attachment.html>


More information about the Beginners mailing list