Skip to content
Prev 304080 / 398503 Next

PHP escapeshellcmd() equivalent

On 8/24/12 2:59 PM, "R. Michael Weylandt" <michael.weylandt at gmail.com>
wrote:
As before, it escapes job control, etc from the command string.
Assuming such existed in R, it would be used something like this:

R> system(escapeshellcmd(sprintf("somecmd %s", untrustedInput1)))