Operating System - HP-UX
1832994 Members
2217 Online
110048 Solutions
New Discussion

Re: remsh strange behavior?

 
SOLVED
Go to solution
Michael Anderson_14
New Member

remsh strange behavior?

The command: which aCC works fine when run on the remote machine directly but when I try

remsh remotehost -l username -n "which aCC"

I get aCC: Command not found.

The strange this is that

remsh remotehost -l username -n "which cc"

works fine, and returns the expected results. I have worked around this problem by using whereis instead of which, but what am I missing here? Is this expected behaviour?
6 REPLIES 6
Sridhar Bhaskarla
Honored Contributor
Solution

Re: remsh strange behavior?

Hi,

aCC is ansi C++ compiler and it has to be purchased and installed seperately. If it is installed, then it has to be in the default path as remsh doesn't execute the user's profile.

cc is available in the default path.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Umapathy S
Honored Contributor

Re: remsh strange behavior?

It is a strange error. If aCC is not installed, it will say

no aCC in blah blah

Are you sure, there are no typhos in typing which.

Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Michael Anderson_14
New Member

Re: remsh strange behavior?

ok,

after further investigation now it comes down to which returning output I wasn't expecting.

I expected:

no aCC in .....

instead I get

aCC: Command not found.

Is this a change between versions of the OS?
Sridhar Bhaskarla
Honored Contributor

Re: remsh strange behavior?

Hi,

I would also look at the shell.

$ aCC
sh: aCC: not found.
$ csh
% aCC
aCC: Command not found.
%

Looks like it is a c shell on the other server.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Umapathy S
Honored Contributor

Re: remsh strange behavior?

I tried in 10.2, 11 and 11i. The output is

no aCC found in /usr/bin ....

What is your version?

Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Michael Anderson_14
New Member

Re: remsh strange behavior?

Thanks Sridhar.

The case has been solved. It seems that the C shell returns a different error message than when I run it in Korn or Bourne shells.

Thanks everyone for the help.