I have one strange sutuation to solve, I have the software compiled in Python; so, to Run it I'm using from the first scrip (named startup.sh
), made by the following code:
#!/bin/sh
./install_deps.sh
python3 app.py >/dev/null 2>&1 & exit
as you can see the first script startup.sh
should run the install_deps.sh
(if will NOT be the conf.txt
file into the same folder) and the actual Python app.py
. But here come out my problem, if I will try to run it the Python app will run perfectly but the script will jump the install_deps.sh
. So, even if I will give the chmod +x
or whatever to both of the script they will not communicate to each other. But If I will run separately/manually the scripts will run and works just fine. So, my question it's, why I cannot let it run or communicate install_deps.sh
from startup.sh
?
To help you more, I attach the install_deps.sh
coding below:
#!/bin/bash
if [[ ! -f conf.txt ]]
then
sudo apt-get install python3 -y
sudo apt install python3-pip -y
sudo apt-get install python3-tk -y
sudo apt install python3-gi -y
sudo apt python3-gi-cairo -y
fi