I am trying to trap CTRL-C, now the program I call has it's own exit message, I think this is the problem ..
This is what I have now :
function dothis
{
echo 'you hit control-c'
exit
}
function settrap
{
trap dothis SIGINT
}
settrap
until false; do
./ITGRecv.exe
done
Doing this I am able to trap it but only after pressing CTRL-C twice, the first time I press it it just runs my program again.
Could also be because of the until statement that runs it one last time ..
Already changed it, originaly was WHILE TRUE.
I don't know, any help is appreciated ..