Many of our clients asked for a simple script that can run an application and kill the application after a time interval.
Basically keeping an application running for a while and restart it.
The below is code you can use as a starter:
APPLICATION_NAME params &
pkill -f -9 APPLICATION_NAME
For example running Firefox with tha simple shell scripts would be:
firefox https://kloud51.com &
pkill -f -9 firefox
Save this in a with extension
.sh and run it as below:
It's pretty much simple.
If you find something interesting please post it in the forum as well.