I have a main script that runs all the scripts in a folder.
#!/bin/bash for each in /some_folder/*.sh do bash $each done;
I want to know if one of them takes too long to complete (more than N seconds). For example, executing a script, for example:
will last a very long time and I want my main script to email me after N seconds.
All I can do is run all the scripts with the #timeout N option, but that will stop them! Is it possible to send me an email and not stop the script?
bash
merlin.metso
source share