first sorry for bad english. Second, I'm creating a cloning tools. I'm using the command
sudo mate-terminal --geometry=50x10 -x sh -c "sudo dd if=/dev/sda of=/dev/sdb status=progress; bash"
I'm using this command so that when user click on clone button link with the command above, the user can see the progress of the cloning which display some sort of a log of time remaining and transfer per second on a new terminal like in this picture.
The problem now is I'm using a touch screen device to create this tools and after the cloning is complete the terminal wont auto exit. User needs to click the "x" button to close the terminal and this would be a problem because I'm using a 3.5" touchscreen display and it can be pretty hard to click on the "x" button on a small touchscreen. When the cloning process is done it displays this on the terminal
I've already tried
exec ./clone.sh
and
./clone.sh && exit
and
./clone; exit
But all fail.
For your information, the command is link to a button so my command is like this
(action)./clone.sh && exit(/action)
Can anyone help me ?