stark@techhub.social:~$ █ · @Stark9837
397 followers · 2111 posts · Server techhub.social

@mekuso

The container is running constantly because the bot constantly runs checks. However, I want the bot to generate some stuff for me, which I can totally do manually once a week, but where is the fun in that?

So I thought, why not add to the container, allow it to run automatically in parallel with the bot without requiring additional containers.

Also, the credentials are in a .ENV, so having the jobs running in the same environment is easier, than running an entirely different config.

#docker #cronjobs

Last updated 1 year ago

stark@techhub.social:~$ █ · @Stark9837
397 followers · 2111 posts · Server techhub.social

Is the best way to run periodic functions, not necessary time-critical, just needs to happen in the correct hour or day,

I am running a bot in a container, but want weekly or daily things to happen. Adding this to the main loop seems inefficient, because checks will unnecessary be done.

Should I rather use a image, run the script in the container and then just have cronjobs running in the container, rather than using a Python image.

Storage, memory and processing isn't actually a problem, so using a larger and beefier image is possible.

#cronjobs #python #docker #linux #bots #development #tech #webdev #selfhosting #homelab

Last updated 1 year ago

manitu GmbH · @team
262 followers · 156 posts · Server manitu.social

Wir haben die bei uns im auch aufgehübscht.

Habt ihr eigentlich schon gewusst, dass ihr euch ein Ausführungs-Log anzeigen lassen könnt?

#cronjobs #webhosting

Last updated 1 year ago

Daniel Finsler · @insl
55 followers · 1130 posts · Server tooting.ch

@_DigitalWriter_ diese von kommen mir spanisch vor, bei OwnCube sehen die aber kein Problem damit.

#nextcloud #cronjobs

Last updated 1 year ago

manitu GmbH :verified: · @team
155 followers · 34 posts · Server manitu.social

Ein Kunde meckert, dass nirgendwo auf unserer Webseite steht, dass alle 5 Minuten erst ab Webhosting L aufwärts gehen.

Hmm.

12 mal pro Stunde sind nach unserer Rechnung maximal alle 5 Minuten - wobei wir bewusst nicht einschränken, ob es exakt alle 5 Minuten sein muss. Es könnte ja sein, dass jemand

15,25,45,48,49 * * * *

möchte.

Wir fragen aber mal noch , ob 60/12 wirklich 5 ergibt 😄

#cronjobs #chatgpt

Last updated 1 year ago

Got some more experience with file management and today. A daily cronjob is suspected for filling up the /tmp folder on a couple of systems. Turned off alternating jobs on each system that'll I'll check on Monday to see which one is the offender. Relevant work related practice for is always good.

#cronjobs #rhcsa #sysadmin #sysadminlife #rhel #linux

Last updated 2 years ago

Edward Betts · @edward
290 followers · 78 posts · Server octodon.social

My dad used to email every new year asking me to update the copyright year on a website I made for him in 2004. Eventually, I made a cronjob to update the copyright.

This year the cronjob failed because it was written in Python 2, the server doesn't have Python 2 on it any more.

I've updated the script to Python 3.

#cronjobs #python2 #python3 #copyrightyear

Last updated 2 years ago

GNU/Linux.ch · @gnulinux
4509 followers · 3336 posts · Server social.anoxinon.de

Fediverse-Serie: Castopod - Podcast-Hosting mit Fediverse-Anschluss

Microblogging, Blogging, Photo- und Video-Verbreitung. Die Anwendungsbereiche des ActivityPub-Protokolls, das den Informationstransfer im Fediverse regelt, sind vielfältig. Es war nur eine Frage der Zeit, bis auch Audio-Inhalte wie Podcasts in die Welt dezentraler Datenverteilung aufgenommen würden.

gnulinux.ch/fediverse-serie-ca

#CastoPod #podcast #fediverse #serie #funkwhale #artikelserie #cronjobs #linux

Last updated 2 years ago

Volkan Özçelik · @volkan
19 followers · 868 posts · Server z2h.dev

In case you needed, in Mac OS, there is no such thing as crontab logs (and no syslog either).

Crontab logs its stuff to
`/var/mail/$whateverYourUserNameIs`

so you can

`tail -100f /var/mail/volkan`

(replace `volkan` with your mac user) to get the cron job execution results.

#linux #tips #cron #cronjobs #crontab #devex

Last updated 2 years ago