I am in day 5 of my crash course of learning how to use a Raspberry Pi (or any Linux platform) for the first time. I have an .sh named "startup.sh" file located at "/home/pi/". I have tried several different forums and nothing has helped. I just want this .sh to run at startup.
The script I have made, mounts 2 drives from a wireless home server, and once connect it starts a slide show from some pictures on drives using a screensaver method. I needed there to be a delay between connecting to the wifi before mounting the drives, and a few seconds before it starts the slide show (to allow the mounting process to happen). I've tried using the ./superscript in the .bashrc (accessed using sudo nano .bashrc). I've also tried using the crontab by adding "@reboot /home/pi/startup.sh" at the end. Here is what my crontab and script look like. Link
exec &> /home/pi/startup.log
to your script print the output of your script to a logfile. – jake Mar 11 '19 at 22:25