1

im trying to execute a make command through ssh and still cannot know the reasons why its not working:

I have done so far:

Sending cmd directly on ssh

ssh root@server 'cd /path/;make foo'
make: *** No rule to make target `foo'.  Stop.

After ssh login

ssh root@server
root@server# cd /path/
root@server# make foo
ok

testing

ssh root@server 'echo blah;echo bleh'
blah
bleh

1 Answers1

2

Ok, after nearly a day fighting I found out:

Why does an SSH remote command get fewer environment variables then when run manually?

Thank you all.

Community
  • 1
  • 1