Here are my solutions exercise for learning Bash-Scripting
run_n_processes.sh script will do the following exercise:
If the script is already running it will exit with an error message The script will get a parameter N (number), it will run N processes in parallel Each process will wait a random amount of seconds (up to 20 seconds) and will print a timestamp and its process id Once all processes complete it will print the following statement: X processes completed successfully Y processes failed to complete When X and Y present weather the parallel processes completed successfully or failed. and will exit.