I am making bash script for my use. How can i run a command for certain time, like 20 second and terminate command? I tried a lot of solutions but nothing works, I also tried timeout command with no success. Please give me some solution for this.
for example: I want to run this command in script and terminal after 10 sec