[Sc-devel] unixCmd exit code printing
Till Bovermann
tboverma at techfak.uni-bielefeld.de
Fri Jul 27 12:51:27 PDT 2007
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
More information about the Sc-devel
mailing list