erik2
April 18, 2019, 5:55pm
1
Hello!
I have installed nextcloud on all-inkl.com . I have ssh-access.
I would like to set up e-mail alerting for the activities. However, no emails will be sent. Now I have read that you should install a cronjob. By crontab I can not do that, because I only use the GUI of all-incl. can make.
How can I start the occ command by script?
or are there other solutions?
rg
hansi
Hello @erik2 .
Welcome to the Nextcloud forums.
I do not know your hoster by experience.
Don’t you can setup cron job via ssh?
If not, have you read:
https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/background_jobs_configuration.html?highlight=cron
You can use the nextcloud webcron feature with all-inkl cronjobs. Simply put https://[yourdomain]/cron.php in the path field.
If you need to run specific occ commands, you can create a small php file which calls occ by using exec and call that php script using the all inkl cronjob. See their faq for details: https://all-inkl.com/wichtig/anleitungen/skripte/sonstiges/per-skript/shellskripte-ausfuehren_304.html
2 Likes
erik2
April 19, 2019, 8:31am
4
Hello
thank all for help.
these infos of all-inkl in link above I did not found. Now it is possible to run the cron
thanks for all
rg
hansi
Horton
April 21, 2019, 9:45am
5
Give webcron easycron.com a try, it’s free and does just that and more.