Looking for some help/direction on how I can setup a daily email from my Nethserver. I’m thinking of a corn job to do what I need. Anyone done this before and if so can you provide me some instructions on how I can set this up?
This gives you a nice GUI to set the times and jobs (tasks) you want to set.
This can be a simple command (example: cp path_to_file path_to_target.), or a script.
For scripts, I’ld suggest using a static folder (eg: /etc/scripts, I use /etc/Jobs for legacy reasons…)
As you can see from the screenshot, I use this to run additional backup jobs, trigger a backup to be sent offsite, or grab the configuration of my OPNsense firewalls and store these somewhere…
Anything put in crontab needs the full path for any binary, paths are not expanded to include the system “path” variable. Example: “poweroff” as a command will NOT work: you need to use /usr/sbin/poweroff…
If you use a script, that script must be set executable by the user (usually root!). Here, paths do work.
Amazing support and answers here…thanks very much for you input!
Andy, this module by @stephdl is just what I needed! Thank you.
Markus, this instruction you gave to send an email. I’ve tried adding this to module Andy showed me. Doesn’t appear I’m doing something right here. I’d like to have this email sent daily at 6 am daily (7 days a week). I’ve created the following job in Crontab Manager but I’m getting an error that says:
The validation has been failed: This command line is not allowed : [ “\” ]
Secondly, the reason I’m looking to implement this test is because I’ve had some strange issues with email suddenly. We use a group list of people to send an email to daily. This week we started receiving an error in the Email > Queue related to ‘Too many recipients’. An example of the full details of the deferred email is: