Possible Duplicate:
Why does an SSH remote command get fewer environment variables then when run manually?
If I put command
ssh user@$IP ant
then I receive
bash: ant: command not found
but when I log into
ssh user@$IP
and put
ant
then work fine.
Ant is installed on remote and local machines. Where is the problem?
I've tried to find solution in google and found nothing.
Thanks in advance for help!
--EDIT--
I need to invoke some bash scripts, don't want to change all paths to full path.