#!/bin/bash cond=0 while [ $cond -eq 0 ] do ./build/Lab3 10 10 &> output.txt cond=$? echo $cond done