I have a bash script where I am sleeping and then executing a command in a background process. For example
sleep 30s && ./script.sh &
If I grep ps for "sleep 30s" and kill the process associated with it, will it also prevent ./script.sh
from running, or will my script.sh
be executed with a separate PID?