I need to make a loop about this script:
#!/bin/bash
exec 3>&1;
result=$(dialog --inputbox "Scan S/N" 10 23 2>&1 1>&3);
result1=$(dialog --inputbox "Scan S/N" 10 23 2>&1 1>&3);
result2=$(dialog --inputbox "Scan S/N" 10 23 2>&1 1>&3);
exec 3>$-;
clear
echo $result;
echo $result1;
echo $result2;
And would be great to have a varible where i can select how many times will the loop run...
I dont have to tell you im pretty newbie in this hehe, thanks in advance. JB
exec n>&ncode. Leave them out, it will just confuse things. Good luck.