#!/bin/bash COUNT=$1 WAITFOR=1800 # 30min for i in {1..$COUNT}; do timeout $WAITFOR bash <