mastodon.gamedev.place is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server focused on game development and related topics.

Server stats:

5.4K
active users

#cron

2 posts2 participants1 post today
David Cantrell 🏏<p>Today I hate <a href="https://fosstodon.org/tags/InnoDB" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>InnoDB</span></a> fragmentation, and incompatible <a href="https://fosstodon.org/tags/crontab" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>crontab</span></a> files across different versions of <a href="https://fosstodon.org/tags/cron" class="mention hashtag" rel="nofollow noopener noreferrer" 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 noreferrer" target="_blank">#<span>bash</span></a> <a href="https://bsd.network/tags/cron" class="mention hashtag" rel="nofollow noopener noreferrer" 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>
Norm<p>I've had my <a href="https://fosstodon.org/tags/crontab" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>crontab</span></a> setup for ages to execute `trash-empty 30` (from the <a href="https://fosstodon.org/tags/TrashCLI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TrashCLI</span></a> package) each day, but just realised it hasn't been working.</p><p>Running manually shows a confirmation prompt, so I assume that's the reason. Apparently trash-empty can detect when it's in interactive mode, but this appears to be buggy.</p><p>Thankfully there's an `-f` flag to force the command with no prompt, so changing my crontab to `trash-empty -f 30` hopefully works instead.</p><p><a href="https://fosstodon.org/tags/Bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Bash</span></a> <a href="https://fosstodon.org/tags/Linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Linux</span></a> <a href="https://fosstodon.org/tags/Cron" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Cron</span></a></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 noreferrer" target="_blank">#<span>rsync</span></a> <a href="https://mastodon.social/tags/cron" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cron</span></a> <a href="https://mastodon.social/tags/macOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>macOS</span></a> <a href="https://mastodon.social/tags/security" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>security</span></a></p>
:rss: Qiita - 人気の記事<p>Amazon EventBridge 設定メモ<br><a href="https://qiita.com/BC016/items/385ba90eaf062167fcf3?utm_campaign=popular_items&amp;utm_medium=feed&amp;utm_source=popular_items" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">qiita.com/BC016/items/385ba90e</span><span class="invisible">af062167fcf3?utm_campaign=popular_items&amp;utm_medium=feed&amp;utm_source=popular_items</span></a></p><p><a href="https://rss-mstdn.studiofreesia.com/tags/qiita" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>qiita</span></a> <a href="https://rss-mstdn.studiofreesia.com/tags/AWS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AWS</span></a> <a href="https://rss-mstdn.studiofreesia.com/tags/cron" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cron</span></a> <a href="https://rss-mstdn.studiofreesia.com/tags/EventBridge" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>EventBridge</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 noreferrer" 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 noreferrer" target="_blank">#<span>cron</span></a> <a href="https://mstdn.social/tags/backups" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>backups</span></a> <a href="https://mstdn.social/tags/SelfHosting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SelfHosting</span></a> <a href="https://mstdn.social/tags/server_management" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>server_management</span></a> <a href="https://mstdn.social/tags/homelab" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>homelab</span></a></p>
Pasquale 📷 🇫🇷 🦻<p><a href="https://piaille.fr/tags/question" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>question</span></a> <a href="https://piaille.fr/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a> <a href="https://piaille.fr/tags/crontab" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>crontab</span></a> <a href="https://piaille.fr/tags/mysql" class="mention hashtag" rel="nofollow noopener noreferrer" 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 noreferrer" 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><p>Edit : La solution à mon problème ici par <span class="h-card" translate="no"><a href="https://mastodon.social/@Dominix" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>Dominix</span></a></span> :</p><p><a href="https://mastodon.social/@Dominix/114132696033730693" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">mastodon.social/@Dominix/11413</span><span class="invisible">2696033730693</span></a></p>
gary<p><span class="h-card" translate="no"><a href="https://mastodon.social/@gerowen" class="u-url mention" rel="nofollow noopener noreferrer" 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 noreferrer" target="_blank">#<span>magical</span></a> thinking <a href="https://infosec.exchange/tags/routine" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>routine</span></a> <a href="https://infosec.exchange/tags/cron" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cron</span></a></p>
zital<p>crontab-agaz path-an arazuek badakozuien:</p><p><a href="https://stackoverflow.com/a/14694543/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">stackoverflow.com/a/14694543/</span><span class="invisible"></span></a></p><p><a href="https://mastodon.eus/tags/cron" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cron</span></a> <a href="https://mastodon.eus/tags/gnu" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>gnu</span></a> <a href="https://mastodon.eus/tags/linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linux</span></a> <a href="https://mastodon.eus/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a></p>
Meshuggah Mischell ✅<p>I've made it, the Backup of my <a href="https://metalhead.club/tags/Ubuntu" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Ubuntu</span></a> <a href="https://metalhead.club/tags/linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linux</span></a> Server and move of the <a href="https://metalhead.club/tags/Backup" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Backup</span></a> Files via <a href="https://metalhead.club/tags/rsync" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rsync</span></a> to a <a href="https://metalhead.club/tags/cloudstorage" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cloudstorage</span></a> is finally running and everything is running automated via <a href="https://metalhead.club/tags/cron" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cron</span></a> Jobs 👍 now comes the Hard Part, the <a href="https://metalhead.club/tags/recovery" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>recovery</span></a> tests. A Backup is only as good as the result of the recovery Tests...</p>
Erik L. Arneson :emacs:<p>I'm thinking that this could be used to trigger cron jobs that you don't want to run all the time. <a href="https://fosstodon.org/tags/cron" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cron</span></a> <a href="https://fosstodon.org/tags/maybe" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>maybe</span></a></p>
:rss: Qiita - 人気の記事<p>電子ペーパーをカレンダーとして使用する<br><a href="https://qiita.com/_shin_/items/3ba5170a87a6417d2594?utm_campaign=popular_items&amp;utm_medium=feed&amp;utm_source=popular_items" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">qiita.com/_shin_/items/3ba5170</span><span class="invisible">a87a6417d2594?utm_campaign=popular_items&amp;utm_medium=feed&amp;utm_source=popular_items</span></a></p><p><a href="https://rss-mstdn.studiofreesia.com/tags/qiita" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>qiita</span></a> <a href="https://rss-mstdn.studiofreesia.com/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> <a href="https://rss-mstdn.studiofreesia.com/tags/cron" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cron</span></a> <a href="https://rss-mstdn.studiofreesia.com/tags/RaspberryPi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RaspberryPi</span></a> <a href="https://rss-mstdn.studiofreesia.com/tags/%E9%9B%BB%E5%AD%90%E3%83%9A%E3%83%BC%E3%83%91%E3%83%BC" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>電子ペーパー</span></a> <a href="https://rss-mstdn.studiofreesia.com/tags/e_Paper" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>e_Paper</span></a></p>
panigrc<p><span class="h-card" translate="no"><a href="https://lowkey.zone/@jp" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>jp</span></a></span> I'm using <a href="https://mastodon.social/tags/syncthing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>syncthing</span></a> to sync the posts to my home server. Then a script runs regularly using <a href="https://mastodon.social/tags/cron" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cron</span></a> and updates the site.<br>I'm using <a href="https://mastodon.social/tags/markor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>markor</span></a> in <a href="https://mastodon.social/tags/android" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>android</span></a> as well.</p><p><a href="https://mastodon.social/tags/blog" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>blog</span></a> <a href="https://mastodon.social/tags/hugo" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>hugo</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 noreferrer" 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 noreferrer" 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 noreferrer" 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 noreferrer" 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 noreferrer" 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 noreferrer" target="_blank">#Linux</a><p></p>
ricardo :mastodon:<p><a href="https://fosstodon.org/tags/Linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Linux</span></a>: How to Use <a href="https://fosstodon.org/tags/Cron" class="mention hashtag" rel="nofollow noopener noreferrer" 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 noreferrer" 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>
Nicolas Delsaux<p>J'ignorais qu'il y avait dans Linux un outil pour garantir qu'un cronjob ne s'exécutait qu'une fois ... <a href="https://linuxhandbook.com/flock-command/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">linuxhandbook.com/flock-comman</span><span class="invisible">d/</span></a> <a href="https://framapiaf.org/tags/linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linux</span></a> <a href="https://framapiaf.org/tags/cron" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cron</span></a> <a href="https://framapiaf.org/tags/commandline" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>commandline</span></a> <a href="https://framapiaf.org/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</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 noreferrer" target="_blank">#<span>GUI</span></a> für die <a href="https://mastodon.online/tags/crontab" class="mention hashtag" rel="nofollow noopener noreferrer" 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 noreferrer" target="_blank">#<span>cron</span></a> <a href="https://mastodon.online/tags/linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linux</span></a></p>
Abimelech B. 🐧🇩🇪| wörk ™️<p><span class="h-card" translate="no"><a href="https://muenchen.social/@johummel" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>johummel</span></a></span> <br>Dank <a href="https://github.com/nextcloud/docker" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/nextcloud/docker</span><span class="invisible"></span></a> und ein bisschen <a href="https://fulda.social/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a> und <a href="https://fulda.social/tags/cron" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cron</span></a> Magie ist das auch gar nicht so schwer 😍 </p><p>docker-compose --ansi never pull &amp;&amp; \<br>docker-compose --ansi never stop &amp;&amp; \<br>docker-compose --ansi never up -d<br>docker exec --tty -u www-data "$(docker ps|grep nextcloud|awk '{print $1}'|head -1)" php occ app:update --all<br>docker exec --tty -u www-data "$(docker ps|grep nextcloud|awk '{print $1}'|head -1)" php occ db:add-missing-indices</p><p><a href="https://fulda.social/tags/nextcloud" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nextcloud</span></a><br><a href="https://fulda.social/tags/opensource" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>opensource</span></a><br><a href="https://fulda.social/tags/software" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>software</span></a><br><a href="https://fulda.social/tags/security" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>security</span></a> <br><a href="https://fulda.social/tags/docker" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>docker</span></a></p>
David Cantrell 🏏<p>I remembered this afternoon that I needed to turn off a <a href="https://fosstodon.org/tags/cron" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cron</span></a> job. So I did. I edited root's crontab during half time of the <a href="https://fosstodon.org/tags/EnglandA" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>EnglandA</span></a> vs <a href="https://fosstodon.org/tags/AustraliaA" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AustraliaA</span></a> <a href="https://fosstodon.org/tags/rugby" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rugby</span></a> match. I don't use it often, but <a href="https://fosstodon.org/tags/Termius" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Termius</span></a> seems to have sprouted an "AI" predictive text tentacle so typing was much easier than it had any right to be. Knowing how to navigate in <a href="https://fosstodon.org/tags/vim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vim</span></a> really helped though. It was a good game too.</p>
Tech Cybersecurity Nieuws<p>Nieuwe techniek voor cyberaanvallen: cron#trap en de emulatie van linux <a href="https://www.trendingtech.news/trending-news/2024/11/47464/nieuwe-techniek-voor-cyberaanvallen-cron-trap-en-de-emulatie-van-linux" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">trendingtech.news/trending-new</span><span class="invisible">s/2024/11/47464/nieuwe-techniek-voor-cyberaanvallen-cron-trap-en-de-emulatie-van-linux</span></a> <a href="https://mastodon.nl/tags/cyberaanvallen" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cyberaanvallen</span></a> <a href="https://mastodon.nl/tags/Linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Linux</span></a>-emulatie <a href="https://mastodon.nl/tags/CRON" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CRON</span></a>#TRAP <a href="https://mastodon.nl/tags/phishing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>phishing</span></a> <a href="https://mastodon.nl/tags/QEMU" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>QEMU</span></a> <a href="https://mastodon.nl/tags/Trending" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Trending</span></a> <a href="https://mastodon.nl/tags/News" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>News</span></a> <a href="https://mastodon.nl/tags/Nieuws" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Nieuws</span></a></p>