Not sure if this has been answered as I'm not really sure what to search for... (beginner with Raspberry Pi)
My idea was to copy a file from a flash disk to the pi and then execute, reason being I want to be able to update the file without going into the pi.
This might not be the best method but it works...
Created an extra file with the following and called the file from rc.local
#!/bin/bash sleep 30 cp /media/pi/drive/file.sh /home/pi sudo chmod +x /home/pi/file.sh /home/pi/file.sh
I know the file.sh was executed but it's not executed in a window, therefor cannot see what's going on in the program, is there a way to change my code to launch in a new terminal so that it doesn't run in the background? Not using any fancy terminals, just the stock standard one.