<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
Hi,<br>
<br>
I am new in here and to Squeak in general. <br>
<br>
To me OSProcess works in MacOS and FreeBSD (Linux emulation).<br>
<br>
I don't have a Windows machine to try unfortunately.<br>
<br>
This is a list of working examples (in my operating systems), maybe
try to run something similar in Windows. I guess the equivalent of
"ls" is "dir". <br>
<br>
-------------------------------------------------<br>
"in this case we want to take the output from an external program"<br>
p := PipeableOSProcess command: 'ls -la'.<br>
commandOutput := p output.<br>
commandOutput.<br>
<br>
"in this case you don't take the output, just run a program."<br>
p := OSProcess command: 'ls -la'.<br>
<br>
"In FreeBSD (Linux emulation) it works, open Emacs in a GUI."<br>
p := OSProcess command: 'emacs'.<br>
---------------------------------------------------<br>
<br>
bye<br>
Nicola<br>
<br>
<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 8/3/19 7:50 PM, Christoph Thiede
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1564854644320-0.post@n4.nabble.com">
<pre class="moz-quote-pre" wrap="">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: <a class="moz-txt-link-freetext" href="http://forum.world.st/Squeak-Beginners-f107673.html">http://forum.world.st/Squeak-Beginners-f107673.html</a>
_______________________________________________
Beginners mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/mailman/listinfo/beginners">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a>
</pre>
</blockquote>
<br>
</body>
</html>