2009/327 [system_noshell]

Casper.Dik at sun.com Casper.Dik at sun.com
Fri May 29 15:31:37 PDT 2009


R
>I think it would be helpful to see a few worked examples that show how
>system_noshell() and its variants make things simpler than using
>posix_spawn().
>
>    Date: Fri, 29 May 2009 10:41:30 -0700
>    From: Sumanth Naropanth <Sumanth.Naropanth at sun.com>
>    Subject: Re: system_noshell [PSARC/2009/327 FastTrack timeout
>	    06/05/2009]
>
>    ...
>
>    system_noshell("/bin/rm /tmp/tmpfile") is simpler than
>    posix_spawn(pid, "rm", NULL, NULL, argv, NULL) which also includes
>    populating an argv vector.
>
>The example given above is a start, but I'd like to see something more
>realistic.


If we're going to *parse* commands using spaces or what not, I vote
no, right now!

Casper




More information about the opensolaris-arc mailing list