cron

  1. M

    Solved Cron Emails & OpenDKIM?

    Is there any reason why cron emails are not signed by OpenDKIM? My server is setup so all emails are delivered via postfix (sendmail is disabled). The cron emails are delivered from <user>@mail.example.com. If I manually send an email from "mayhem@mail.example.com", the email is digitally...
  2. A

    Solved Script not running from Cron

    Hello, I have that sh script: #!/bin/sh DATE=`date +%Y-%m-%d:%H:%M:%S` NAME="game" if ps ax | grep -v grep | grep $NAME > /dev/null then echo "$NAME service running, everything is fine" else echo "$DATE: Restarting $NAME" >> /root/log cd /usr/home/game/db && ./game fi and it works...
  3. J

    Best way to check if freebsd-updates are available?

    Hello, I've been reading about freebsd-update cron That looks interesting. I'd be interested in receiving an email each time updates are available. However I guess this would require me to install and configure sendmail, postfix or something like that to send me e-mails over the internet...
  4. A

    Change cron default sendmail to mail

    I'm running FreeBSD 11.0-RELEASE. On default cron is using /usr/lib/sendmail to send user emails. How can I tell/set cron to use /bin/mail instead? crontab(5) says in the section about the MAILTO var: This option is useful if you decide on /bin/mail instead of /usr/lib/sendmail as your mailer...
  5. Zack

    Solved Some mail has no content

    I use mail/ssmtp with mail via cron to send the output of some scripts to my email. I use a google email to send them to my main email address. Sometimes the email body will say "This message has no content". Here's an example from cron of a script where the email says this. smartctl -a...
  6. Preacher

    Shell 'Garbage' output during script execution (via cron)

    I have this script which checks for updates on my host system and on my jails: #!/usr/local/bin/bash PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin" # Updaten en rapporteren Ports Tree host system: portsnap cron update && { echo -e "Packages te...
  7. MMacD

    Solved Cron syntax question

    I've never needed to use cron before now, so its secrets remain a mystery to me. The handbook and man page appear to say (indirectly!) that '*' can mean either "all" or "not interpreted", and that conflicts are OR'd together. Do I have that right? For example, to run a job at 0200 on the...
  8. J

    Best way to automatically keep system, packages, and daemons up to date

    Hi, I'd like to know if you have a good way of keeping a system completely up to date in a completely automated way. If my understanding is correct, I can add 42 8 * * * freebsd-update cron in root's crontab to have the base system (I guess that means the kernel and the programs in /bin)...
Back
Top