[Sc-devel] unixCmd exit code printing
Tom Hall
scth at ludions.com
Fri Jul 27 23:26:11 PDT 2007
On 27 Jul 2007, at 12:49, Till Bovermann wrote:
> aahh, yes, it waits for the return value... how about using -d
> option in BigHonkingText?
Thanks, -d with systemCmd seems to work OK, though haven't tested
against any precise timing.
> seems to be nice btw. (your extension), wanna make it a quark?
Thank you, I may do so at some stage. Someone suggested the nice idea
of writing a script to automate getting and installing
BigHonkingText, but that's a TODO atm.
Tom
>
> regards
> Till
>
> On 27.07.2007, at 13:22, Tom Hall wrote:
>
>> Ah, actually, it looks like systemCmd is not working out for me,
>> as it stops other sclang processes happening while it evaluates,
>> such as r{100.do{|i| i.pl; 0.2.wait}}.play
>>
>> Any idea why, are the implementations different kind of things?
>>
>> Tom
>>
>>
>> On 27 Jul 2007, at 11:51, Tom Hall wrote:
>>
>>> Thanks Till, that does the trick.
>>>
>>> BTW, I see that systemCmd is not mentioned in the String helpfile.
>>> Perhaps someone could add a note there about that?
>>>
>>> Regards
>>>
>>> Tom
>>>
>>>
>>> On 27 Jul 2007, at 10:51, Till Bovermann wrote:
>>>
>>>> you may just use systemCmd, this does not print the exitCode,
>>>> but returns it as an integer number (which you may or may not
>>>> ignore :-)
>>>>
>>>> hope that helps
>>>> Till
>>>>
>>>> On 27.07.2007, at 11:32, Tom Hall wrote:
>>>>
>>>>> Hello All
>>>>>
>>>>> unlike the default behaviour of a shell, unixCmd prints the
>>>>> exit code of the process in the post window (usually RESULT =
>>>>> 0). This can clog up the window the if a large number of
>>>>> commands are being executed.
>>>>>
>>>>> Could we easily have a flag to turn off this posting behaviour?
>>>>> Something like,
>>>>>
>>>>> "ls".unixCmd(printExitCode: false)
>>>>>
>>>>> The printing is called by line 129 in SuperCollider3/Source/
>>>>> lang/LangPrimSource/PyrUnixPrim.cpp
>>>>>
>>>>> post("RESULT = %d\n", res);
>>>>>
>>>>> If a flag is not a bad idea, could someone who knows C possibly
>>>>> implement this?
>>>>>
>>>>> The context is a little SC String method to link SC to the OSX
>>>>> UNIX utility BigHonkingText
>>>>> details at www.ludions.com/sc/
>>>>>
>>>>> Regards
>>>>>
>>>>> Tom
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Sc-devel mailing list
>>>>> Sc-devel at create.ucsb.edu
>>>>> http://www.create.ucsb.edu/mailman/listinfo/sc-devel
>>>>
>>>> _______________________________________________
>>>> Sc-devel mailing list
>>>> Sc-devel at create.ucsb.edu
>>>> http://www.create.ucsb.edu/mailman/listinfo/sc-devel
>>>
>>> _______________________________________________
>>> Sc-devel mailing list
>>> Sc-devel at create.ucsb.edu
>>> http://www.create.ucsb.edu/mailman/listinfo/sc-devel
>>
>> _______________________________________________
>> Sc-devel mailing list
>> Sc-devel at create.ucsb.edu
>> http://www.create.ucsb.edu/mailman/listinfo/sc-devel
>
> _______________________________________________
> Sc-devel mailing list
> Sc-devel at create.ucsb.edu
> http://www.create.ucsb.edu/mailman/listinfo/sc-devel
More information about the Sc-devel
mailing list