BASH SHELL IF ELSE run command in background
- by bikerben
I have used the & command before to make a script run another script in the background like so:
#!/bin/bash
echo "Hello World"
script1.sh &
script2.sh &
echo "Please wait..."
But lets say I have another script with an IF ELSE statment and I would like to set an ELIF statement mid flow as a background task witht the & and then…