<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1483968170908_2742"><span id="yui_3_16_0_ym19_1_1483968170908_2741">Thank you. Yes, giving the full path to the executable name indeed solve the problem. I found it a few moments after I send this question. Sorry if the question sounds a bit silly. :)</span></div><div></div><div id="yui_3_16_0_ym19_1_1483968170908_2593"><br></div><div id="yui_3_16_0_ym19_1_1483968170908_2593">Another problem from the same code above is it fails to supply data to stdin. It seems the input data doesn't get delivered to the pipe. So, it just stucks waiting forever. I had to kill the process manually. Which also raises another question, how to make Task doesn't wait forever? So, it has some kind of time out mechanism.</div><div id="yui_3_16_0_ym19_1_1483968170908_2593"><br></div><div id="yui_3_16_0_ym19_1_1483968170908_2593">Thank you.</div><div id="yui_3_16_0_ym19_1_1483968170908_2593"><br></div><div id="yui_3_16_0_ym19_1_1483968170908_2593">Regards,</div><div class="signature" id="yui_3_16_0_ym19_1_1483968170908_3094"><div id="yui_3_16_0_ym19_1_1483968170908_3093"><br></div>–Mr Bee<div id="yui_3_16_0_ym19_1_1483968170908_3108"><br></div></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> Pada Senin, 9 Januari 2017 17:09, Alex Blewitt <alblue@apple.com> menulis:<br></font></div> <br><br> <div class="y_msg_container"><div id="yiv8318879918"><div>When you run it with absolute paths for the 'swift' and 'python' executables, does it work then?<div class="yiv8318879918"><br clear="none" class="yiv8318879918"></div><div class="yiv8318879918">Alex</div><div class="yiv8318879918"><br clear="none" class="yiv8318879918"><div><blockquote class="yiv8318879918" type="cite"><div class="yiv8318879918yqt3018482864" id="yiv8318879918yqt20120"><div class="yiv8318879918">On 9 Jan 2017, at 06:20, Mr Bee via swift-users <<a rel="nofollow" shape="rect" class="yiv8318879918" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a>> wrote:</div><br clear="none" class="yiv8318879918Apple-interchange-newline"><div class="yiv8318879918"><div class="yiv8318879918"><div class="yiv8318879918" style="background-color:rgb(255, 255, 255);font-family:HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;"><div class="yiv8318879918" id="yiv8318879918"><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_61653"><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_61652" style="background-color:rgb(255, 255, 255);font-family:HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;"><div class="yiv8318879918"><span class="yiv8318879918"></span></div><div class="yiv8318879918"></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_61651">Hi,</div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_61651"><br clear="none" class="yiv8318879918"></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_61651"><div class="yiv8318879918" dir="ltr" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_65599"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_65600">I'm writing a simple editor on Linux for Swift language. I use Task (was NSTask) to run the Swift REPL. Unfortunately, Task failed to execute the Swift REPL for no obvious reasons. The Swift compiler and REPL are installed just fine and able to execute any Swift codes. However, my exact same code has no problem to run bash commands.</span></div><div class="yiv8318879918" dir="ltr" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_65601"><br clear="none" class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_65602"></div><div class="yiv8318879918" dir="ltr" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_65603">Here's the code:</div></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_61651">_____</div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_61651"><br clear="none" class="yiv8318879918"></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_61651"><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62655" style="font-size:12px;line-height:normal;font-family:Menlo;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62656" style="color:#35568a;">import</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62657" style=""> Foundation</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62658" style="font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0, 119, 66);"><br clear="none" class="yiv8318879918"></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62664" style="font-size:12px;line-height:normal;font-family:Menlo;color:rgb(53, 86, 138);"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62665" style="">extension</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62666" style=""> </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62667" style="color:#c35900;">Task</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62668" style=""> {</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62669" style="font-size:12px;line-height:normal;font-family:Menlo;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62670" style=""> </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62671" style="color:#35568a;">func</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62672" style=""> execute(command: </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62673" style="color:#c35900;">String</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62674" style="">, currentDir: </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62675" style="color:#c35900;">String</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62676" style=""> = </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62677" style="color:#e82300;">"~"</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62678" style="">, arguments: [</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62679" style="color:#c35900;">String</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62680" style="">] = [], input: </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62681" style="color:#c35900;">String</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62682" style=""> = </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62683" style="color:#e82300;">""</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62684" style="">) -> </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62685" style="color:#c35900;">String</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62686" style=""> {</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62687" style="font-size:12px;line-height:normal;font-family:Menlo;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62688" style=""> </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62689" style="color:#35568a;">if</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62690" style=""> </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62691" style="color:#587ea8;">!</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62692" style="">input.</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62693" style="color:#587ea8;">isEmpty</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62694" style=""> {</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62695" style="font-size:12px;line-height:normal;font-family:Menlo;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62696" style=""> </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62697" style="color:#35568a;">let</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62698" style=""> pipeIn = </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62699" style="color:#c35900;">Pipe</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62700" style="">()</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62701" style="font-size:12px;line-height:normal;font-family:Menlo;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62702" style=""> </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62703" style="color:#35568a;">self</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62704" style="">.standardInput = pipeIn</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62705" style="font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0, 119, 66);"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62706" style=""> </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62707" style=""><i class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62708">// multiple inputs are separated by newline</i></span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62709" style="font-size:12px;line-height:normal;font-family:Menlo;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62710" style=""> </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62711" style="color:#35568a;">if</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62712" style=""> </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62713" style="color:#35568a;">let</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62714" style=""> input = input.</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62715" style="color:#587ea8;">data</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62716" style="">(using: </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62717" style="color:#c35900;">String</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62718" style="">.</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62719" style="color:#c35900;">Encoding</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62720" style="">.</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62721" style="color:#587ea8;">utf8</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62722" style="">) {</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62723" style="font-size:12px;line-height:normal;font-family:Menlo;color:rgb(88, 126, 168);"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62724" style=""> pipeIn.</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62725" style="">fileHandleForWriting</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62726" style="">.</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62727" style="">write</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62728" style="">(input)</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62729" style="font-size:12px;line-height:normal;font-family:Menlo;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62730" style=""> }</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62731" style="font-size:12px;line-height:normal;font-family:Menlo;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62732" style=""> }</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62733" style="font-size:12px;line-height:normal;font-family:Menlo;min-height:14px;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62734" style=""> </span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62735" style="font-size:12px;line-height:normal;font-family:Menlo;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62736" style=""> </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62737" style="color:#35568a;">let</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62738" style=""> pipeOut = </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62739" style="color:#c35900;">Pipe</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62740" style="">()</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62741" style="font-size:12px;line-height:normal;font-family:Menlo;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62742" style=""> </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62743" style="color:#35568a;">self</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62744" style="">.standardOutput = pipeOut</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62745" style="font-size:12px;line-height:normal;font-family:Menlo;min-height:14px;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62746" style=""> </span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62747" style="font-size:12px;line-height:normal;font-family:Menlo;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62748" style=""> </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62749" style="color:#35568a;">self</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62750" style="">.arguments = arguments</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62751" style="font-size:12px;line-height:normal;font-family:Menlo;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62752" style=""> </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62753" style="color:#35568a;">self</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62754" style="">.launchPath = command</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62755" style="font-size:12px;line-height:normal;font-family:Menlo;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62756" style=""> </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62757" style="color:#35568a;">self</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62758" style="">.currentDirectoryPath = currentDir</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62759" style="font-size:12px;line-height:normal;font-family:Menlo;min-height:14px;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62760" style=""> </span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62761" style="font-size:12px;line-height:normal;font-family:Menlo;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62762" style=""> </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62763" style="color:#35568a;">self</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62764" style="">.launch()</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62765" style="font-size:12px;line-height:normal;font-family:Menlo;color:rgb(88, 126, 168);"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62766" style=""> </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62767" style="color:#35568a;">let</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62768" style=""> output = pipeOut.</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62769" style="">fileHandleForReading</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62770" style="">.</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62771" style="">readDataToEndOfFile</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62772" style="">()</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62773" style="font-size:12px;line-height:normal;font-family:Menlo;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62774" style=""> </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62775" style="color:#35568a;">self</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62776" style="">.waitUntilExit()</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62777" style="font-size:12px;line-height:normal;font-family:Menlo;min-height:14px;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62778" style=""> </span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62779" style="font-size:12px;line-height:normal;font-family:Menlo;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62780" style=""> </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62781" style="color:#35568a;">return</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62782" style=""> String(data: output, encoding: String.Encoding(rawValue: String.Encoding.utf8.rawValue))!</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62783" style="font-size:12px;line-height:normal;font-family:Menlo;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62784" style=""> }</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62785" style="font-size:12px;line-height:normal;font-family:Menlo;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62786" style="">}</span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62787" style="font-size:12px;line-height:normal;font-family:Menlo;min-height:14px;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62788" style=""></span><br clear="none" class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62789"></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62790" style="font-size:12px;line-height:normal;font-family:Menlo;"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62791" style="">print(Task().execute(command: </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62792" style="color:#e82300;">"swift"</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62793" style="">, arguments: [</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62794" style="color:#e82300;">"test.swift"</span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62795" style="">])) </span><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62796" style="color:#007742;"><i class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62797">// <- FAILED</i></span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62798" style="font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0, 119, 66);"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62799" style=""><i class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62800">// print(Task().execute(command: "python", arguments: ["test.py"])) // <- FAILED</i></span></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62129" style="font-size:12px;line-height:normal;font-family:Menlo;">
</div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62801" style="font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0, 119, 66);"><span class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62802" style=""><i class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62803">// print(Task().execute(command: "/bin/ls", arguments: ["-l"])) // <- OK</i></span></div><div class="yiv8318879918" dir="ltr" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_62804"><br clear="none" class="yiv8318879918"></div></div><div class="yiv8318879918" dir="ltr" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_61651">_____</div><div class="yiv8318879918" dir="ltr" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_61651"><br clear="none" class="yiv8318879918"></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_61651">The test code is just a simple hello world program, nothing fancy. Can anybody here enlighten me what did I wrong with the code? I'm using Swift v.3.0 on Ubuntu Linux 14.04.</div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_61651"><br clear="none" class="yiv8318879918"></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_61651">Thank you.</div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_61651"><br clear="none" class="yiv8318879918"></div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_61651">Regards,</div><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_61651"><br clear="none" class="yiv8318879918"></div><div class="yiv8318879918signature" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_61655"><div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_61654"><br clear="none" class="yiv8318879918"></div>–Mr Bee<div class="yiv8318879918" id="yiv8318879918yui_3_16_0_ym19_1_1483940019235_65806"><br clear="none" class="yiv8318879918"></div></div></div></div></div></div></div>_______________________________________________<br clear="none" class="yiv8318879918">swift-users mailing list<br clear="none" class="yiv8318879918"><a rel="nofollow" shape="rect" class="yiv8318879918" ymailto="mailto:swift-users@swift.org" target="_blank" href="mailto:swift-users@swift.org">swift-users@swift.org</a><br clear="none" class="yiv8318879918">https://lists.swift.org/mailman/listinfo/swift-users<br clear="none" class="yiv8318879918"></div></div></blockquote></div><br clear="none" class="yiv8318879918"></div></div></div><br><br></div> </div> </div> </div></div></body></html>