I have a requirement as follows. My Perl program calls two shell programs (say Pro1.sh and Pro2.sh) such that
- Run Pro1.sh
- Wait for 2 minutes, then start running Pro2.sh parallely
- Check if Pro2.sh has completed its execution
- if yes, stop pro1.sh else continue with Pro1.sh
How can Pro1.sh and Pro2.sh be run parallelly? How can the two parallel processes communicate with each other that based on one's output other can be manipulated ? I am new to Perl and parallel programing. Thanks in advance