command in .bashrc is being executed twice
0
votes
1
answer
1947
views
I am using
.bashrc
to execute a python script on system boot:
sudo -u pi python3 /path/to/script.py
and then I add @lxterminal
to file /etc/xdg/lxsession/LXDE-pi/autostart
to make sure a terminal window is opened on launch.
However, when I use ps aux
to check all progresses, I found that there's two script.py
processes running in the system, even though I call execute the script only once in .bashrc
. Having two of the same script running at the same time is causing me troubles. Any help is appreciated.
Asked by michael
(1 rep)
Sep 20, 2020, 07:50 AM
Last activity: Sep 21, 2020, 01:53 PM
Last activity: Sep 21, 2020, 01:53 PM