I used two 'test' scripts when I was testing this problem:

# cat caller
echo "about to call"
p1=parm1
p2=parm2
p3=parm3
chroot /opt/qmt-sandbox \
   /usr/src/qmt/called \
     $p1 \
     $p2 \
     $p3
echo "returned from called"

# cat called
echo "0=$0 1=$1 2=$2 3=$3"
exit


Try creating caller, called in /opt/qmt-sandbox/usr/src/qmt/, then run
caller. What do you get?


I created /opt/qmt-sandbox/usr/src/qmt/caller
Chmod +x caller
And pasted in the script

When I ran it, I got the following output:

[EMAIL PROTECTED] qmt]# ./caller
About to call
Chroot: cannot run command '/usr/src/qmt/called': No such file or directory
returned from called
0=./caller 1= 2= 3=

I tried running it in /usr/src/qmt as well and got the same output

Ron


---------------------------------------------------------------------
     QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to