<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;">I have been trying to get Squeak to execute a complex command for me. I tried OSProcess and CommandShell , but OSProcess does not work and gives me no errors (that I can see), CommandShell does not work because it interprets the command line I give it as multiple commands because my command string contains #& which appears to be a special character in #findTokens:keep.</div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;"> </div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;">When I tried ProxyPipeLine it looks likes it starts to work because a zero length file (zlf) is written to the target directory, but that is all I get. If I run the same command line that I feed to ProxyPipeLine to an external Treminal session, the <span style="line-height: 19.2px;">zero length file is written to the target directory and then the program runs for several seconds and the file is populated. This makes me think there is a timming issue somewhere.</span></div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;"> </div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;">My test process is:</div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;">1 In a Workspace, enter the command string and Inspect it.</div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;">2. In the Inspector, Explore self value.</div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;">3. The zlf gets written to the directory</div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;">4. The ProxyPipeline says "a PipeableOSProcess on an ExternalUnixOSProcess with pid 53180 on /opt/local/bin/rtmpdump (complete, normal termination with status 1)"</div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;">5. The zlf stays zero</div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;">6. Tried again from 1. with waitForAllToComplete, but 'pipeline did not complete evaluation'</div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;"> </div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;">This is the closest I have gotten to getting the results I am looking for. I think I need some way to tell the pipeline to stay alive while the pipe completes its business.</div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;"> </div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;">--- my invocation</div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;">ProxyPipeline fromString: '/opt/local/bin/rtmpdump -r "rtmp://bbcodspdns.fcod.llnwd.net:1935/a5999/e1?as=adobe-hmac-sha256&av=1&te=connect&mp=prod_rb2_flv_aac_low_intl/iplayerstream/p025mlpk_b007gwqn_1410009892525.mp4&et=1410651181&fmta-token=bcc4153708137784417c3b5350dd4636d4abe4884d85f3d650ff08d14357bb65" -a "a5999/e1?as=adobe-hmac-sha256&av=1&te=connect&mp=prod_rb2_flv_aac_low_intl/iplayerstream/p025mlpk_b007gwqn_1410009892525.mp4&et=1410651181&fmta-token=bcc4153708137784417c3b5350dd4636d4abe4884d85f3d650ff08d14357bb65" -y "mp4:prod_rb2_flv_aac_low_intl/iplayerstream/p025mlpk_b007gwqn_1410009892525.mp4" -o /Volumes/MediaVault/BBC/79151303.flv ' shell: CommandShell new</div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;">-- end</div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;">This is a time sensitive command and this example is not repeatable after a few days.</div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;"> </div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;">Thanks in advance for any suggetions,</div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;">jrm</div>
<div style="font-family: Verdana; font-size: 12px; line-height: normal;"> </div>
</div></div></body></html>