#!/bin/sh cmd="$@" for ep in ep? do ( cd $ep ../dht < ../nodes.txt ) done