cron

  1. A

    Auto-encrypting outgoing server monitoring emails

    Background: I set up a server with mail/ssmtp and sysutils/logwatch because I wanted to painlessly monitor system security. Logwatch sent me a nice email, pretty much out-of-the-box, but when I read it I realized that the information in the body is sensitive. So I asked myself: why not encrypt...
  2. JonnySac

    cron daemon date/time +4 hours ahead of system date/time on RPI4?

    Hi, I've been using FreeBSD 13.0 on an RPI 4 and I noticed something weird when setting up a cron job. I could not get the cron job to run, so I inspected /var/log/cron and found 2 different datetimes. As you can see below, it logs when I edit the crontab using the correct datetime of the...
  3. Dogers

    Solved Crontab - Create ramdisk at launch fails.

    Greetings everyone. I want to create a memory disk for testing purpose automatically every-time I launch my FreeBSD workstation. Everything I have tried has failed. But it comes probably from me since I am a totally beginner at using cron. Here is what I have done until here : -Created a...
  4. lifepillar

    How to efficiently manage cron mails with many hosts?

    Hello FreeBSD community, first poster here. I hope my question won't be considered too general or not technical enough. I have currently a dozen jails (and still growing) in my server (FreeBSD 12.1). One jail is a mail server (Dovecot+OpenSMTPD), and each jail is configured to forward cron...
  5. T

    Solved What is running find -sx / /usr/home /var/mail /usr/src /projects /dev/null daily?

    Every morning, I hear my hard-drive thrashing and do a ps aux to find this: find -sx / /usr/home /var/mail /usr/src /projects /dev/null I grepped /etc/cron*, but didn't find anything in there referencing find. I also looked at all the crontabs. I'm running ZFS on my root FS. I have locate...
  6. emilengler

    Run "pkg update" and "pkg upgrade" with cronjob

    Hi, is it possible to run these two commands with a cronjob? If so do I need additonal parameters like I would need on a dpkg system? (apt -y upgrade)
  7. aragats

    Solved a puzzle with missing file and cron

    An hour I started getting emails with errors reporting by a cron task: /usr/local/www/misc/eldora/get_image.sh: convert: not found I logged in my VPS and found that indeed, the file convert doesn't exist. It's supposed to belong to graphics/ImageMagick7 or to one of its flavors. So, I checked...
  8. I

    cron job not working

    I have set up my cron job as following: 0 0 1 * * certbot renew while as a root user (switched to root using "su -l root") using the "crontab -e" command. I have further confirmed that it does appear in the file "/var/cron/tabs/root". However, the cron command is never fired. Why? And, how...
  9. S

    Solved periodic via crontab will not follow MAILTO settings

    1) Could someone explain why periodic daily/weekly/monthly commands set in /etc/crontab will ignore settings: MAILTO="emailoutside@somedomain.com" or MAILTO="" Other tasks are good to follow what crontab(5) says, but periodic will not and always send emails to the owner (i.e. root from "who"...
  10. spython01

    Shell Duplicity backup script not running via cronjob

    I am running FreeBSD 11.1-RELEASE-p10 and trying to schedule a cronjob to run a daily script which will use duplicity to backup my ~/Documents directory to an Azure blob. The script (~/.duplicity/.backup1.sh) reads as follows: #!/bin/bash # the true variable values are in my real script...
  11. M

    Solved cronjob and locale

    Hello there, I have a python script that does something with the files. In user profile I've set locale to UTF-8, since some filenames/folders use special characters (other language than ENG). When I run script under the user profile, everything is working fine, but when I run it under the...
  12. Duffyx

    Shell Variables in a cron entry

    I'd like to define some local variables in a cron entry so that I can create the following file /usr/local/etc/cron.d/rsync with the following contents: PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin excludes="--exclude=/storage --exclude=/proc"...
  13. scrappywan

    /etc/rc.d/cron does not start at boot

    I recently installed FreeBSD 11.1 on my desktop and wanted to use zfs-tools to create periodic snapshots. Everything related to zfs-tools including my crontab file is setup exactly as another FreeBSD server I run. The only issue on my desktop is that cron does not start, or fails to start during...
  14. G

    libexec/atrun in cron not running

    11.0-RELEASE-p9 FreeBSD 11.0-RELEASE-p9 #0: Tue Apr 11 08:48:40 UTC 2017 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 Dec 12 02:05:00 peetssfo1 /usr/sbin/cron[88473]: (root) CMD (/usr/libexec/atrun) Dec 12 02:05:00 peetssfo1 /usr/sbin/cron[88472]: (root) USER...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
  19. 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...
  20. 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...
Top