I have the following situation :
As root Script_A.sh
is run on the server and sleeps until triggered.
When triggered, it calls Script_B.sh
, which loops on the server to determine which actions it needs to perform. Once it generates its list of actions, it will submit Script_C.sh
as the process owner (su - $sUser -c "/path/to/correct/script.sh"
).
My problem: is there a way to run the su - $sUser -c "/path/to/correct/script.sh"
in background? I do not want to run the 3rd script sequentially.