Hi,
I have a corporate license (Oracle). I installed BC on an OEL 5 Linux machine (as root I believe); created a script to do a file compare; started a VNC server session on this box (I believe this helps satisfy the X-window requirement that BC has for working on Linux); the user I'm logged in as is the one that started the vnc server session, and has read/write privileges to the directory where the BC file compare script is kept and also to the output directory, and has execute privileges on the script.
Here's the issue I'm facing. The command I'm running is -
bcompare -silent @<path-to-script> <args-as-needed-in-script>
When logged as the user into the Linux box in interactive mode using the VNC session, this runs fine and generates the diff report in the output directory specified in the script.
But, when I'm running this in a non-interactive mode, i.e., through a java application deployed to a Weblogic server running on the same box (started by the same user), it fails, and the only error message I've been able to get is "bcompare: Fatal IO error: client killed". To be precise, it does not happen on all Linux boxes I've tried this on - works on a couple of them, and fails on another couple of boxes. I have tried to diff the env settings/variables on all boxes, but I have not been able to narrow it down to a specific setting I'm missing, although my hunch is that when it fails, it is because it's unable to connect to the X server or has some related authentication issue.
I've searched extensively online to no avail, although these links seem to allude to something similar -
https://unix.stackexchange.com/quest...emote-login-to
https://bugs.launchpad.net/ubuntu/+s...sh/+bug/302791
https://bugzilla.redhat.com/show_bug.cgi?id=1215962
https://forums.opensuse.org/showthre...S-launched-app
Please help as this has come up in an internal production env.
I have a corporate license (Oracle). I installed BC on an OEL 5 Linux machine (as root I believe); created a script to do a file compare; started a VNC server session on this box (I believe this helps satisfy the X-window requirement that BC has for working on Linux); the user I'm logged in as is the one that started the vnc server session, and has read/write privileges to the directory where the BC file compare script is kept and also to the output directory, and has execute privileges on the script.
Here's the issue I'm facing. The command I'm running is -
bcompare -silent @<path-to-script> <args-as-needed-in-script>
When logged as the user into the Linux box in interactive mode using the VNC session, this runs fine and generates the diff report in the output directory specified in the script.
But, when I'm running this in a non-interactive mode, i.e., through a java application deployed to a Weblogic server running on the same box (started by the same user), it fails, and the only error message I've been able to get is "bcompare: Fatal IO error: client killed". To be precise, it does not happen on all Linux boxes I've tried this on - works on a couple of them, and fails on another couple of boxes. I have tried to diff the env settings/variables on all boxes, but I have not been able to narrow it down to a specific setting I'm missing, although my hunch is that when it fails, it is because it's unable to connect to the X server or has some related authentication issue.
I've searched extensively online to no avail, although these links seem to allude to something similar -
https://unix.stackexchange.com/quest...emote-login-to
https://bugs.launchpad.net/ubuntu/+s...sh/+bug/302791
https://bugzilla.redhat.com/show_bug.cgi?id=1215962
https://forums.opensuse.org/showthre...S-launched-app
Please help as this has come up in an internal production env.
Comment