If and How is it possible to, in
Terminal, to get an application to run for 30 seconds, before being force closed, and echoing the logs of that process?
You might want to use the timeout command.
which will run the command for 30s and kill it after 10s if still running. - Check the manpage for more options.
Here are two ways (but the
I have no idea what you mean by "the logs of that process" but a process's standard error can be saved to a file with