Hello,
I have 2 AIX 6.1 servers with Informix databases install on them.
I want to make a script that will check what informix servers are installed on each machine so that i will have the same.
On the server that i am logged on i run the command:
Code:
su informix -c 'export INFORMIXDIR=/usr/informix/informix_11.5;PATH=$PATH:$INFORMIXDIR/bin;onstat -g dis'
This command returns me the values that i want. When i am trying to get these values by executing the command remotely to the other server i get the following error:
ksh: onstat: not found
Note that i run the same command i just run
before the command.
Also when i log in to the second server and run the command locally (without ssh <server_name>) it works correct again.
I dont understand what is the problem.
Anybody has an idea about it?
Thank you