I am making a bash script for my use.
How can I run a command for certain time, like 20 seconds 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
some command
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…