Hallo;
ich wuerde gern ein Makefile erstellen; das sich auf bestimmte hosts
einloggt und dort batch jobs macht.
das klappt in der shell so auch :
Code:
for i in localhost localhost localhost ; do ssh $i ls ; done
Bei Ersetzen im Makefile klappt das nicht?
Code:
make -f Makefile.sf.bugy test
for i in localhost localhost localhost; do ssh ls ; done
ssh: ls: Name or service not known
ssh: ls: Name or service not known
ssh: ls: Name or service not known
make: *** [test] Error 255
Im Makefile ist TEST so definiert und LS=ls :
TEST=for i in localhost localhost localhost ; do ssh ${i} ${LS} ; done
Mit `` ists genauso. Wieso findet make $i nicht?
Auch soll spaeter mal statt ls was anderes drinstehen, z.B:
`echo `hostname` >stat.$$`
Vielen Dank fuer jegliche Hilfe.
403
Lesezeichen