[Newbies] ProxyPipeLine terminates external command prematurely

David T. Lewis lewis at mail.msen.com
Mon Sep 15 13:53:58 UTC 2014


Hi JohnReed,

I am away and cannot be of much help right now, but I'm afraid that I may
have given you bad advice in my last response. CommandShell does all the
command parsing in Smalltalk, and it may not be smart enough to handle the
complex parameters in the example you gave here. So it may be necessary to
let the real Unix shell do the parsing, which is exactly what you were
originally were trying to do - sorry.

I'll try to give you a better answer in a day or so.

Note, I have a hard time reading your examples in my mail system, so if
you are able to post messages in plain text rather than html that would
help me to understand what you are trying to do.

Dave


> <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 #&amp; which appears to be a special character in
> #findTokens:keep.</div>
>
> <div style="font-family: Verdana; font-size: 12px; line-height:
> normal;">&nbsp;</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&nbsp;<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;">&nbsp;</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 &quot;a PipeableOSProcess on an
> ExternalUnixOSProcess with pid 53180 on /opt/local/bin/rtmpdump (complete,
> normal termination with status 1)&quot;</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&nbsp;waitForAllToComplete,
> but&nbsp;&#39;pipeline did not complete evaluation&#39;</div>
>
> <div style="font-family: Verdana; font-size: 12px; line-height:
> normal;">&nbsp;</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;">&nbsp;</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: &#39;/opt/local/bin/rtmpdump -r
> &quot;rtmp://bbcodspdns.fcod.llnwd.net:1935/a5999/e1?as=adobe-hmac-sha256&amp;av=1&amp;te=connect&amp;mp=prod_rb2_flv_aac_low_intl/iplayerstream/p025mlpk_b007gwqn_1410009892525.mp4&amp;et=1410651181&amp;fmta-token=bcc4153708137784417c3b5350dd4636d4abe4884d85f3d650ff08d14357bb65&quot;
> -a
> &quot;a5999/e1?as=adobe-hmac-sha256&amp;av=1&amp;te=connect&amp;mp=prod_rb2_flv_aac_low_intl/iplayerstream/p025mlpk_b007gwqn_1410009892525.mp4&amp;et=1410651181&amp;fmta-token=bcc4153708137784417c3b5350dd4636d4abe4884d85f3d650ff08d14357bb65&quot;
> -y
> &quot;mp4:prod_rb2_flv_aac_low_intl/iplayerstream/p025mlpk_b007gwqn_1410009892525.mp4&quot;
> -o /Volumes/MediaVault/BBC/79151303.flv &#39; 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;">&nbsp;</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;">&nbsp;</div>
> </div></div></body></html>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>




More information about the Beginners mailing list