I have scripted two python codes. one, to run on boot and to create a file locally in the same directory where the code is placed another one to sense a low to high signal in GPIO. I have placed the code at /etc/rc.local. I'm trying something like this.
sleep 1; python /home/ubuntu/Desktop/lcd.py & sleep 1; python /home/ubuntu/Desktop/button.py exit 0
Both the codes , runs on boot and no issue with that. The problem I'm facing is that the first code " lcd.py" should create a local file and THE FILE HAS NOT BEEN CREATED. I have searched for the existence of file in both the /etc directory and the path of the python script. Can someone help me fix this problem?