I have a problem with bash programming. I have this code:
#!/bin/bash
tmpfile="temp.txt"
./child.sh &
sleep 4s
but I want to get the exit code of child.sh
. I know that is possible with the costructor wait
. There are any constructor with wait+timeout?
Thanks