Normally one uses this kind of code to run a command within a named jail:
But it seems it's impossible to use any pipe and redirect as all of this fails:
It seems this has to do with the new shell that is created by a pipe and not proper handled withing the used
jexec jailname command parameters path
But it seems it's impossible to use any pipe and redirect as all of this fails:
jexec jailname cat /mysqldump.txt | mysql
jexec jailname mysql < /mysqldump.txt
It seems this has to do with the new shell that is created by a pipe and not proper handled withing the used
execvp()
of jexec. Has anyone an idea to solve the problem?