![](https://secure.gravatar.com/avatar/23e49e42733da1026ac2bbfcda0c85df.jpg?s=120&d=mm&r=g)
3 Jul
2013
3 Jul
'13
11:42 p.m.
Your bash loop syntax is likely the culprit.
If you have your devices/nodes listed in a text file, I'd iterate like so:
for NODE in `cat textfile.txt`; do ./addhost.php $NODE community v2c; done
-Chris
On 7/3/13 3:45 PM, David Lagace wrote:
I tried to script it in the following way (please don't hurt me I'm not much of a coder)
for file in `cat routerdt1`; do ./addhost.php "$file" mycomm v2c; done
But keep getting: Could not resolve i504562