Read the statement by Michael Teeuw here.
Dropbox-Uploader: how to synchronize a folder with cron job?
-
@MajorC you said
But I would like to have a script to do that every time the pi starts up automaticallyso, what commands would you issue to do that
creating a script is as simple as writing a file with this commands
making it executable (see chmod command)
and then launching it. -
@sdetweil the script is running fine if I start it manualy by hand.
I need a hint how to do it the same way, the MagicMirror starts.
-
@MajorC i wrote the two commands u need to issue
pm2 start scriptpath (where is your script and what is its name, = scriptpath) pm2 save
to set it up if you use pm2 to launch MM (which my install script does for you if you used it)
-
@sdetweil thank you. It seams to work. The script was way more easy than expected.
May I ask, if I roboot the MM with Strg+Q, will my script run again?
-
@MajorC yes.pm2 reruns regardless how the system was rebooted