Yes, your current directory is your HOME directory /home/pi (that's what the "~" means in the prompt).Thanks for both replies.
I have the solis directory with solis.sh, soliscloud_to_pvoutput.py, soliscloud_to_pvoutput.cfg and logging_config.ini inside at /home/pi/solis.
At the command line pi@raspberrypi:~ $ if I type chmod +x solis.sh I get cannot access solis.ch: no such file or directory.
Should I be moving to a different directory before I use that ? if so how to please.
You would probably be best moving into the solis directory before running your commands:
Code:
cd solis
Code:
pi@raspberrypi:~/solis $
sudo should be a thing of last resort when permissions are denied.Edit: I tried sudo chmod +x solis/solis.sh and that didnt error so I assume it worked.
These are lines you put in your crontab file using "crontab -e", not something to type in the command line.I tried the same sudo before the 2 5 * * * ~/solis/solis.sh > /dev/null
@reboot sleep 123 && ~/solis/solis.sh > /dev/null
And I get 2: command not found so I am a bit lost on this section.
cron is something that runs tasks in the background according to schedules set in crontab files.
Statistics: Posted by rpdom — Fri Dec 13, 2024 12:14 pm