bash:
#!/bin/bash
DOMAIN=mydomain.com
for client in ServerA ServerB ServerC ServerD
do
xhost +$client.$DOMAIN
done
MS-DOS:
@echo off
for..... crap.....
I can't seem to get the for loop to work properly. Has anyone had much experience with batch files in DOS? I realize that running xhost inside of a batch file sounds silly, but there is a need for it in this situation. :)
I wouldn't doubt if the first response is RTFM, or whatever, but there is no "man" in ms-dos, and doing "for /?" didn't help at all. :)