[Newbies] Introduction into OSProcess
Christoph.Thiede at student.hpi.uni-potsdam.de
Mon Aug 5 07:48:19 UTC 2019
[(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 ...
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
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"
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:
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!
Sent from: http://forum.world.st/Squeak-Beginners-f107673.html
Beginners mailing list
Beginners at lists.squeakfoundation.org<mailto:Beginners at lists.squeakfoundation.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners