| 
									
										
										
										
											2011-09-14 01:49:00 +02:00
										 |  |  | #!/bin/sh | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | outfile="$1"; shift | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ( | 
					
						
							|  |  |  |    for host in "$@"; do | 
					
						
							|  |  |  |       hosts="$hosts $host" | 
					
						
							| 
									
										
										
										
											2011-09-14 08:45:55 +02:00
										 |  |  |       cdist config -c ~/p/cdist-nutzung -p $hosts 2>&1 | 
					
						
							| 
									
										
										
										
											2011-09-14 01:49:00 +02:00
										 |  |  |    done | 
					
						
							|  |  |  | ) | tee "$outfile" | 
					
						
							|  |  |  | echo "----------" | 
					
						
							|  |  |  | grep 'INFO: Total processing time for' "$outfile" | sed 's/.*: //' |