log errors from host command
authorGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Sun, 18 Aug 2013 10:18:49 +0000 (12:18 +0200)
committerGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Sun, 18 Aug 2013 10:18:49 +0000 (12:18 +0200)
planetlab/exp-tool/Makefile

index 9b36471..d62a4c5 100644 (file)
@@ -172,8 +172,8 @@ cache/status.%: FORCE
        @$(SSH) $(HOST_$*) $(SUDO) sliver-ovs status ||:
 
 cache/host.%:
-       @echo "IP lookup for $(call display,$*)"
-       @host $(HOST_$*) | sed -n '/^.*has address */{s///p;q}' > $@
+       @echo "IP lookup for $(call display,$*) - logs in $(call log,$@)"
+       @host $(HOST_$*) | sed -n 's/^.*has address *//p' > $@ 2> $(call log,$@)
 
 cache/db.%:
        @echo "Starting db server on $(call display,$*) - logs in $(call log,$@)"