I have a bash script A (i.e. scripta.sh) which executes another bash script B (i.e. scriptb.sh), running other commands.
# Cool logic scriptb.sh &
# Cool logic nohup python3 app.py >> app.log &
When I run
nohup scripta.sh >> a.log &, I get both the outputs of A and app.py into a.log, while app.log is empty.
Why is this happening? How can I change this behaviour?