[user2@serverB]$ file /export/home/user2/utils/plugin/Test.exe
/export/home/user2/utils/plugin/Test.exe: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped, no debugging information available
(No, this is just another way to run it on SPARC serverB.)
Check with
ldd /export/home/user2/utils/plugin/Test.exe
where the shared libraries are located.
You need to tweak LD_LIBRARY_PATH before you can run the /export/home/user2/utils/plugin/Test.exe.
Maybe you do this in your ~/.profile or ~/.bashrc_profile?
Change runme.sh on serverB from /export/home/user2/utils/plugin/Test.exe to ldd /export/home/user2/utils/plugin/Test.exe
on ServerA modify the .profile and add the correct export LD_LIBRARY_PATH
(Note: I m however not sure where the LD_LIBRARY_PATH [shared library path] is )
Please let me know if there anything more i need to do apart from the above 2 points?
Well, I suggest that before you fix the issue, you must understand what the problem is and what is causing the problem
It appears that your problem is that in one environment a shared lib that you require loads and in another environment the same required library does not load.
So, then you have to think, OK.... what is the difference between the two environments.
A good way to do that, is to compare the two environments; especially as it it pertains to PATHs (and permissions of course) related to executing and loading files / commands.
When you login to a terminal directly, your shell sets up an environment for the shell you are using.
When you are remote and use a network connection to execute a command remotely (in your case with ssh) , you need to insure your environmental variables provide the necessary path(s) to load the shared libs.
Hence, you do not need us to tell you what to do; you need to think about how to compare your two environments and insure you have the correct environment, perms etc.
The trick to solving a system admin problem like this is to understand the problem first and develop a solution after you understand the problem and what caused the problem.