crontab

  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. VBA

    periodic daily Root Mails

    Hello, I haven't received regular daily root mails for some time now. What is the best way to identify the issue? /etc/mail/virtuals root info@mydomain.com /etc/crontab # /etc/crontab - root's crontab for FreeBSD # # $FreeBSD$ # SHELL=/bin/sh...
  3. 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 '....')...
  4. byrnejb

    Solved Various forms of /etc/crontab ?

    We have a number of jails running on several hosts. I was examining the /etc/crontab files and noted that the file contents differ slightly from jail to jail. Some have this: # /etc/crontab - root's crontab for FreeBSD # # $FreeBSD: releng/12.3/usr.sbin/cron/cron/crontab 338497 2018-09-06...
  5. blind0ne

    Shell Can't edit crontab

    Hello, I wan't to edit my crontrab in order to add one simple script, but I'm really unfamilir with vi or vim and already forgot how to exit from it few times (can't rememer how many), so using crontab -e is not the way for me, so I've tried to change my EDITOR variable to nano from my current...
  6. Aknot

    Restart Apache 2.4 in crontab after renewing letsencrypt certs with acme.sh?

    Hello everyone, Is it possible to restart www/apache24 from crontab after successfully renewing letsencrypt certs with security/acme.sh? This is what I have now (run each night 03:00): * 3 * * * /usr/local/sbin/acme.sh --cron >> /var/log/acme.cron.log Thank you,
  7. 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...
  8. 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...
  9. 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...
  10. 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"...
  11. daBee

    nginx kill nginx.pid

    Hi folks. Other confusion with nginx. I'm trying some regular log rollovers and want to kill the process. I have read that after moving and renaming my nginx.log, I want to do this: kill -USR1 $( cat /var/run/nginx.pid ) That is the proper location of the pid file. The kill stops the...
  12. 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...
  13. C

    Shell Shell Script in Jail: TAR doesn't quit

    I am having an issue backing up our moodle server. This is with FreeNAS11. For some reason it seems like the TAR never stops despite it finishing and creating an actual file. Or, for whatever reason, the Hard Drive is continually accessed at a rate of 20 to 30 MBs until I reset the jail with...
  14. 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...
  15. patpro

    Solved nss_ldap problem with only few base system commands

    Hello, I'm running a bunch of FreeBSD 10.3-RELEASE servers (MX servers, Web servers…). All of them are bound to an LDAP server for user authentication/access. I can ssh to those server with my LDAP account, I can use id, ldapsearch and so on without any problem. The LDAP server is queried over...
  16. F

    Setup Script to run at boot using crontab?

    Hi, So I'm trying to set a script, so it starts on boot. The problem is, I'm using "@reboot" and I don't think that is working. I have: Tried modifying /etc/crontab as root using crontab -e -u syncthing tried various commands, IE: "@restart touch /home/syncthing/test" I have surfed the net...
  17. 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...
  18. S

    Solved shell script cron job not working

    hi all, I have a shell script code as cron job that check the pool status and save it in a sqlite database. when I run it from terminal. it work properly but in crontab it does't work. The crontab: # SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/etc/myjob/pool # #minute hour...
  19. sidetone

    Solved Package vulnerability vuxml warning on desktop startup

    I kind of have an idea for how to make a popup for when a vulnerability is presented. For the root crontab I have @reboot pkg audit -F @hourly pkg audit -F I can use pkg audit as a non-root user to find the alert, but this doesn't alert me automatically when it becomes present. Next, I found...
  20. talsamon

    Solved crontab desktop notification

    Try make a desktop notification with crontab. The line in the crontab is: 30 * * * * user export DISPLAY=:0.0 && /usr/local/bin/myscript. Working with notify-send in the script, my window manager is fvwm-crystal. /var/log/cron says it is executed. but I am seeing nothing on desktop. On...
Back
Top