Is shell code injection possible in Chapel?

Hello everyone! Happy Sunday.

In the same way that Python has the os library, with system() and subprocess.run() methods to execute shell commands within a script, does Chapel have anything similar? Ideally, I would like to execute a shell command inside of a Chapel task.

Hi! Yes, see the spawn() function in the Subprocess module.

1 Like

Thanks so much!!