Trying to set up a command file that will open a program, wait for X seconds, and then close the program. Ideally, I am trying to create a loop that will do it for a specified number of iterations. Any ideas?
I've got a test file that works great at opening one instance of a program (just a simple open command), and what I believe is a working sleep command. However, in trying to kill the program using pkill, it never actually kills it because the focus has been shifted to the program.
I've got a test file that works great at opening one instance of a program (just a simple open command), and what I believe is a working sleep command. However, in trying to kill the program using pkill, it never actually kills it because the focus has been shifted to the program.