Good morning,

how can I pass multiple ssh commands in order to restart milter server on each server in my cluster?

This is a bash script I started to write:


Code:
#!/bin/bash

ZMProv="/opt/zimbra/bin/zmprov"

	$ZMProv -l getAllServers mta > /tmp/server.milter
	for i in $(cat /tmp/server.milter) 
	do 
		echo "Restart " $i
		===>> SSH COMMAND <<===
	done 


rm /tmp/server.milter
Tks
A.