toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

273
active users

#cron

1 post1 participant0 posts today
MDZG (Markdown Zen Garden)<p>🔍 / <a href="https://mastodon.uno/tags/software" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>software</span></a> / <a href="https://mastodon.uno/tags/library" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>library</span></a> / <a href="https://mastodon.uno/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> </p><p><a href="https://mastodon.uno/tags/Crontab" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Crontab</span></a> module for reading and writing crontab files and accessing the system <a href="https://mastodon.uno/tags/cron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cron</span></a> automatically and simply using a direct API.</p><p>🐱🔗 <a href="https://laravista.altervista.org/CatLink/links/325" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">laravista.altervista.org/CatLi</span><span class="invisible">nk/links/325</span></a></p><p><a href="https://mastodon.uno/tags/catlink" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>catlink</span></a> <a href="https://mastodon.uno/tags/SoftwareLibrary" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SoftwareLibrary</span></a> <a href="https://mastodon.uno/tags/SoftwareLibraryPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SoftwareLibraryPython</span></a> <a href="https://mastodon.uno/tags/PythonCrontab" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonCrontab</span></a></p>
chribonn<p>The Complete Guide to Installing, Configuring and Operating Plex Media Server on Ubuntu Server (12/14)</p><p>📺 The Scheduler can be used to automate any task. (Beginner-Friendly!) </p><p>This video shows you how to use a crontab generator to set a schedule for the task you want to execute and then copy the output and paste it into Ubuntu's cron table. <br><a href="https://youtu.be/3NV--V6Fa4s" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">youtu.be/3NV--V6Fa4s</span><span class="invisible"></span></a></p><p><a href="https://twit.social/tags/PlexMediaServer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PlexMediaServer</span></a> <a href="https://twit.social/tags/UbuntuServer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>UbuntuServer</span></a> <a href="https://twit.social/tags/HomeServer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HomeServer</span></a> <a href="https://twit.social/tags/SelfHosting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SelfHosting</span></a> <a href="https://twit.social/tags/PlexSetup" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PlexSetup</span></a> <a href="https://twit.social/tags/PMS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PMS</span></a> <a href="https://twit.social/tags/TTMO" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TTMO</span></a> <a href="https://twit.social/tags/Streaming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Streaming</span></a> <a href="https://twit.social/tags/Beginner" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Beginner</span></a> <a href="https://twit.social/tags/HowTo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HowTo</span></a> <a href="https://twit.social/tags/Cron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Cron</span></a></p>
Daniel Wayne Armstrong<p>This video was helpful in getting me started on writing my own bash script to automate the process of creating ZFS snapshots and doing backups to my home server.</p><p>[Video starts at 9:45 where the scripting begins]...</p><p><a href="https://youtu.be/_4wJMUgZloQ?si=JPy19GSgQBNBWMj4&amp;t=585" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">youtu.be/_4wJMUgZloQ?si=JPy19G</span><span class="invisible">SgQBNBWMj4&amp;t=585</span></a></p><p><a href="https://fosstodon.org/tags/ZFS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ZFS</span></a> <a href="https://fosstodon.org/tags/Bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Bash</span></a> <a href="https://fosstodon.org/tags/Scripting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Scripting</span></a> <a href="https://fosstodon.org/tags/Cron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Cron</span></a></p>
Kevin Karhan :verified:<p><span class="h-card" translate="no"><a href="https://mastodon.social/@iznogoud" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>iznogoud</span></a></span> <span class="h-card" translate="no"><a href="https://defcon.social/@thedarkener" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>thedarkener</span></a></span> <code>cron</code> deserves a <em>"50 years of loyal service" ribbon</em>!</p><ul><li>Sadly only natural persons can be honored that way… </li></ul><p><a href="https://en.wikipedia.org/wiki/Order_of_Merit_of_the_Federal_Republic_of_Germany" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">en.wikipedia.org/wiki/Order_of</span><span class="invisible">_Merit_of_the_Federal_Republic_of_Germany</span></a><br><a href="https://de.wikipedia.org/wiki/Datei:GER_Bundesverdienstkreuz_2b_BVK_50Jahre.svg" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">de.wikipedia.org/wiki/Datei:GE</span><span class="invisible">R_Bundesverdienstkreuz_2b_BVK_50Jahre.svg</span></a></p><p><a href="https://infosec.space/tags/cron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cron</span></a> <a href="https://infosec.space/tags/unix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>unix</span></a></p>
Jordan<p>Happy 50th birthday, cron! Thanks for remembering all of our jobs for us 😎 </p><p><a href="https://en.wikipedia.org/wiki/Cron" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">en.wikipedia.org/wiki/Cron</span><span class="invisible"></span></a></p><p><a href="https://defcon.social/tags/cron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cron</span></a> <a href="https://defcon.social/tags/unix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>unix</span></a> <a href="https://defcon.social/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://defcon.social/tags/birthday" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>birthday</span></a></p>
Stefan Bohacek<p>I just learned, via a mutual, that cron, the job-scheduling command-line utility, is celebrating 50 years this month.</p><p><a href="https://en.wikipedia.org/wiki/Cron" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">en.wikipedia.org/wiki/Cron</span><span class="invisible"></span></a></p><p>(In case anyone cares for this sort of thing on here.)</p><p><a href="https://stefanbohacek.online/tags/cron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cron</span></a> <a href="https://stefanbohacek.online/tags/anniversary" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>anniversary</span></a></p>
David Cantrell 🏏<p>Today I hate <a href="https://fosstodon.org/tags/InnoDB" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>InnoDB</span></a> fragmentation, and incompatible <a href="https://fosstodon.org/tags/crontab" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>crontab</span></a> files across different versions of <a href="https://fosstodon.org/tags/cron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cron</span></a></p>
Martin Pugh<p>Hay there fediverse. Do we have any <a href="https://bsd.network/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> <a href="https://bsd.network/tags/cron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cron</span></a> experts that can help me figure out how to fix things?</p><p>TL;DR - I need to reference the `$USER` variable as a parameter in a shell script that forms part of a dynamic path in a backup routine (the location varies by host so trying to automate as much as possible). Running the script as a logged in user over SSH works perfectly but when I add a crontab entry under the same user to run the same script is fails to parse the `$USER` part so the destination is incorrect and it throws an error.</p><p>I should also note that if I specify the path manually in the script it also works, but then it's a pain to automate across different hosts so I'm trying to avoid that if possible.</p><p>I now been going round in circles trying to figure this out for a couple of days so it's time to ask for help.</p>
Pete Prodoehl 🍕<p>I forgot you can't just run a shell script with rsync calls via cron on macOS because of... security. I think my workaround will do though.</p><p>I write a shell script and then create an Automator application that calls the shell script. I then add a cron job to open the application. </p><p>I need to check if it runs when the screen is locked. I'm pretty sure it does but I will test again.</p><p><a href="https://mastodon.social/tags/rsync" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rsync</span></a> <a href="https://mastodon.social/tags/cron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cron</span></a> <a href="https://mastodon.social/tags/macOS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>macOS</span></a> <a href="https://mastodon.social/tags/security" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>security</span></a></p>
Dmitry Kudryavtsev<p>So I needed to run some periodic backup jobs, both for personal and professional needs. If were you ever tasked with such a request, you probably looked at cron. But cron has shortcoming: it does not survive power off events, it does not support any logs, and you can’t easily tell when, and if it was ran.</p><p>Meet systemd timers. A modern approach to running cron-like job-scheduling.</p><p><a href="https://yieldcode.blog/post/working-with-systemd-timers/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">yieldcode.blog/post/working-wi</span><span class="invisible">th-systemd-timers/</span></a></p><p><a href="https://mstdn.social/tags/cron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cron</span></a> <a href="https://mstdn.social/tags/backups" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>backups</span></a> <a href="https://mstdn.social/tags/SelfHosting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SelfHosting</span></a> <a href="https://mstdn.social/tags/server_management" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>server_management</span></a> <a href="https://mstdn.social/tags/homelab" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>homelab</span></a></p>
Pasquale 📷 🇫🇷 🦻<p><a href="https://piaille.fr/tags/question" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>question</span></a> <a href="https://piaille.fr/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> <a href="https://piaille.fr/tags/crontab" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>crontab</span></a> <a href="https://piaille.fr/tags/mysql" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mysql</span></a> :</p><p>j'ai un script qui fait</p><p>for db in database1 database2 database3;<br>do<br>echo $db<br>if [[ "$db" != "database2"&nbsp;]]; then<br> echo "dumping database $db"<br> mysqldump -u $USER -p$PASSWORD --databases $db &gt; $db.sql<br>fi<br>done</p><p>quand je le lance directement, pas de souci, ça fonctionne. mais en tâche <a href="https://piaille.fr/tags/cron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cron</span></a>, rien, que dalle, que pouic, mon cul dans les orties.<br>et je ne vois pas pourquoi.</p><p>Une idée ?</p>
gary<p><span class="h-card" translate="no"><a href="https://mastodon.social/@gerowen" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>gerowen</span></a></span> good story - i have to pull trigger on vps and implement martial law study regime, even on wkds. the server will be a needed mini timesink. it may be a case of the new normal - study for certs until I get a few and then keep studying and test taking indefinitely until right money and right situation magically show up <a href="https://infosec.exchange/tags/magical" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>magical</span></a> thinking <a href="https://infosec.exchange/tags/routine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>routine</span></a> <a href="https://infosec.exchange/tags/cron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cron</span></a></p>
ferricoxide<p><span>A couple months back, I bought an external (Samsung) USB SSD. It's a </span><i><span>bit</span></i><span> aggressive about spinning down for power-saving. As a result, if I want </span><a href="https://www.backblaze.com/" rel="nofollow noopener" target="_blank"><span>Backblaze</span></a><span> to be able to read it as part of its regular activities, I have to do (in </span><a href="https://evil.social/tags/WSL2" rel="nofollow noopener" target="_blank">#WSL2</a><span>):<br></span></p><pre><code>while true do touch /mnt/g/BB-backup.touch printf . sleep 10 done</code></pre><span><br>Every few days to keep the drive online. Otherwise, I get the nag-email telling me "we haven't been able to </span><a href="https://evil.social/tags/backup" rel="nofollow noopener" target="_blank">#backup</a><span> your G: drive in a couple weeks" <br><br>I can't actually </span><a href="https://evil.social/tags/cron" rel="nofollow noopener" target="_blank">#cron</a><span> it out since the </span><code>cron</code><span> service won't run in the WSL instance (no systemd/dbus), but I could always replace it with a </span><a href="https://evil.social/tags/PowerShell" rel="nofollow noopener" target="_blank">#PowerShell</a><span> script that I put into my Windows laptop's scheduler …But I fucking hate writing PowerShell.<br><br></span><a href="https://evil.social/tags/Linux" rel="nofollow noopener" target="_blank">#Linux</a><p></p>
ricardo :mastodon:<p><a href="https://fosstodon.org/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a>: How to Use <a href="https://fosstodon.org/tags/Cron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Cron</span></a> to Schedule Regular Jobs </p><p><a href="https://thenewstack.io/linux-how-to-use-cron-to-schedule-jobs/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">thenewstack.io/linux-how-to-us</span><span class="invisible">e-cron-to-schedule-jobs/</span></a></p>
Tino Eberl<p>Wieso hat die Welt eigentlich keine coole kleine <a href="https://mastodon.online/tags/GUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GUI</span></a> für die <a href="https://mastodon.online/tags/crontab" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>crontab</span></a> erfunden? </p><p>So nach 40 Jahren wär's fei scho mol Zeit, gell?</p><p>(Oder wieso gibt es nix Gnome Scheduler mäßiges mehr?)</p><p><a href="https://mastodon.online/tags/cron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cron</span></a> <a href="https://mastodon.online/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a></p>
Kevin Karhan :verified:<p><span class="h-card" translate="no"><a href="https://mastodon.social/@linuxnerd" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>linuxnerd</span></a></span> yes, <a href="https://infosec.space/tags/systemd" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>systemd</span></a> is a godsent and everyone who doesn't see it that way hasn't done complex administrations and configurations manually with <a href="https://infosec.space/tags/SysVinit" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SysVinit</span></a>, <a href="https://infosec.space/tags/daemons" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>daemons</span></a>, <a href="https://infosec.space/tags/cron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cron</span></a> etc.</p><p><a href="https://www.youtube.com/watch?v=o_AIw9bGogo" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">youtube.com/watch?v=o_AIw9bGog</span><span class="invisible">o</span></a></p>
tinfoil-hat<a class="hashtag" href="https://social.tinfoil-hat.net/tag/linux" rel="nofollow noopener" target="_blank">#linux</a> <a class="hashtag" href="https://social.tinfoil-hat.net/tag/cron" rel="nofollow noopener" target="_blank">#cron</a>
Radgryd<p>I think I'm done. Ever since Cron became Notion Calendar it's been laggy and glitchy. I also don't like the design as much as I used to because they changed quite a few things ...</p><p>Does anyone have a recommendation for an open-source calendar that is able to sync with Google Calendar? 🤔 :boost_ok: <a href="https://mstdn.games/tags/Calendar" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Calendar</span></a> <a href="https://mstdn.games/tags/Cron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Cron</span></a> <a href="https://mstdn.games/tags/NotionCalendar" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NotionCalendar</span></a></p>
rob has moved ➡ rob@rstokes.uk<p>Anyone familiar with <a href="https://social.rstokes.uk/tags/Cron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Cron</span></a> jobs running shell scripts? Please help!</p><p>I've got a simple shell script that runs fine manually from the command line but won't from a Cron job. When searching for an answer, it seems to be a common problem but without a common solution. Any ideas?</p><p>I have tried / ensured correct:</p><p>• #!/bin/bash or #!/bin/sh first line of script<br>• chmod +x or chmod 755 on script to ensure file permissions are rwx for user<br>• owner of file is same user as the Cron running the job<br>• Cron job created using crontab -e whilst logged in as owner of file<br>• added (and removed) /bin/bash or /bin/sh before the location of the script to run in Cron<br>• tried cd /home/mastodon &amp;&amp; ./purge_cache.sh instead, same outcome<br>• I am running the latest version of Bookworm (<a href="https://social.rstokes.uk/tags/Debian" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Debian</span></a>) on a <a href="https://social.rstokes.uk/tags/RaspberryPi" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RaspberryPi</span></a> 4 (4GB RAM, 512GB SD)</p><p>Cron:<br>0 2 * * * /home/mastodon/purge_cache.sh</p><p>Shell script:<br>#!/bin/sh<br>RAILS_ENV=production /home/mastodon/live/bin/tootctl preview_cards remove --days 7<br>curl -fsS -m 10 --retry 5 -o /dev/null <a href="https://hc-ping.com/example1" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">hc-ping.com/example1</span><span class="invisible"></span></a><br>RAILS_ENV=production /home/mastodon/live/bin/tootctl media remove --days 7 --remove-headers<br>curl -fsS -m 10 --retry 5 -o /dev/null <a href="https://hc-ping.com/example2" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">hc-ping.com/example2</span><span class="invisible"></span></a><br>RAILS_ENV=production /home/mastodon/live/bin/tootctl media remove --days 7<br>curl -fsS -m 10 --retry 5 -o /dev/null <a href="https://hc-ping.com/example3" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">hc-ping.com/example3</span><span class="invisible"></span></a></p><p>Note: The tootctl lines flush different media cache older than 7 days (taken from <a href="https://social.rstokes.uk/tags/Mastodon" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Mastodon</span></a> docs); the curl lines ping healthchecks.io (a Cron job monitor) to say the job ran successfully.</p>
circl<p>OpenBSD crond / crontab set_range() heap underflow - CVE-2024-43688</p><p><a href="https://www.supernetworks.org/CVE-2024-43688/openbsd-cron-heap-underflow.txt" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">supernetworks.org/CVE-2024-436</span><span class="invisible">88/openbsd-cron-heap-underflow.txt</span></a></p><p><a href="https://vulnerability.circl.lu/cve/CVE-2024-43688" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">vulnerability.circl.lu/cve/CVE</span><span class="invisible">-2024-43688</span></a></p><p><a href="https://social.circl.lu/tags/vulnerability" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vulnerability</span></a> <a href="https://social.circl.lu/tags/cron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cron</span></a> <a href="https://social.circl.lu/tags/crontab" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>crontab</span></a> <a href="https://social.circl.lu/tags/infosec" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>infosec</span></a> <a href="https://social.circl.lu/tags/crond" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>crond</span></a> <a href="https://social.circl.lu/tags/openbsd" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>openbsd</span></a> <a href="https://social.circl.lu/tags/unix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>unix</span></a></p>