cron

  1. 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...
  2. 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)
  3. 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...
  4. 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...
  5. 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"...
  6. 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...
  7. 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...
  8. 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"...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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)...
Top