Hello all,
I've got a script I'm working on here:
Code:
#! /bin/sh
while read line; do
echo $line
chroot /usr/rh8 echo $line | /path/to/ourapp
done
but the pipe there is giving me a bit of trouble. If I run it as is, the pipe is treated as being outside of the chroot. I've tried single and double quotes around the command, but chroot complains about "no such file or directory" when I do that. Is there any way I can get that pipe to be a part of the command that chroot runs?
If it helps, what's going on here is we have an application that takes input on stdin and outputs a result to stdout. This is run from xinetd, which a separate application connects to, so stdin ends up coming through there.
Thanks in advance for any help.