smbmessage 163 Bytes
Newer Older
Nico Schottelius's avatar
init  
Nico Schottelius committed
1 2 3 4 5 6 7 8 9 10
BASE=192.168.0
MESSAGE="Network Failure"
SMBCLIENT="smbclient -n NONE -M"

i=1

while [ $i -lt 255 ]; do 
	echo $MESSAGE | $SMBCLIENT "$BASE"."$i"
	i=$[$i+1]
done