cron

  1. K

    Cronjob doesn't work in Jail?

    Greetings. I have; SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin 20 12 * * * /root/myscr.sh (Trying to run every day at 12:20 PM - If I made it correctly here) in my "crontab -e" screen, however myscr.sh file doesn't get executed. Any clue on this?
  2. P

    Questions regarding crontab and bash command

    Hi, 1. My first question is regarding crontabs. I added a command to be run every minute in the file /var/cron/tabs/root but it does not execute, is there any other file I need to change as well to make the changes take effect? The syntax of what I added is like this: * * * * * (bash -c '....')...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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)
  9. 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...
  10. 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...
  11. 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"...
  12. 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...
  13. 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...
  14. driesm

    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"...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
  19. 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...
  20. 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...
Back
Top