Good day everyone.
I noticed that cron messages in syslog contains full path in programname instead of short name. (e.g /usr/sbin/cron[31067])
looks like only cron does that. This makes filtering difficult in rsyslog. Is there a way to change this behavior?
Jun 30 19:40:30 hostname ntpd[684]...
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?
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 '....')...
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...
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...
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...
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...
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...
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...
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...
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"...
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...
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...
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"...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.