From 00dc1d2cd25e7d97892218e0cf9766eaba76f475 Mon Sep 17 00:00:00 2001 From: sahinakkaya Date: Mon, 16 Jan 2023 04:38:21 +0000 Subject: [PATCH] jekyll build from Action 95dd4fc28511c7cec85b4d0fc232865ec2a0a1ab --- 2023/01/15/hot-reloading-with-trap-and-kill.html | 2 +- feed.xml | 4 ++-- sitemap.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/2023/01/15/hot-reloading-with-trap-and-kill.html b/2023/01/15/hot-reloading-with-trap-and-kill.html index c3cef70..1afd55e 100644 --- a/2023/01/15/hot-reloading-with-trap-and-kill.html +++ b/2023/01/15/hot-reloading-with-trap-and-kill.html @@ -526,7 +526,7 @@ killing 3124876

Final words

-

I think I am started to getting obsessed with trap command because it has such a good name and it is very useful. FOSS folks are really on another level when it comes to naming. Here is another good one:

+

I think I am started to getting obsessed with trap command because it has such a good name and use case. FOSS folks are really on another level when it comes to naming. Here is another good one:

- How can you see the contents of a file?
diff --git a/feed.xml b/feed.xml index b1c774f..e455f2f 100644 --- a/feed.xml +++ b/feed.xml @@ -1,4 +1,4 @@ -Jekyll2023-01-16T04:36:44+00:00https://sahinakkaya.dev/feed.xmlŞahin Akkaya’s Personal PageŞahin Akkaya's personal blog - a perfectionist who likes to tinker everything until it is just right. Get ready to find some sweet tips that will boost your productivity and make you fall in love with your computer.Şahin AkkayaHot-Reload Long Running Shell Scripts (feat. trap / kill)2023-01-15T21:48:08+00:002023-01-15T21:48:08+00:00https://sahinakkaya.dev/2023/01/15/hot-reloading-with-trap-and-kill<h2 id="trap-them-and-kill-them"><code class="language-plaintext highlighter-rouge">trap</code> them and <code class="language-plaintext highlighter-rouge">kill</code> them!</h2> +Jekyll2023-01-16T04:38:20+00:00https://sahinakkaya.dev/feed.xmlŞahin Akkaya’s Personal PageŞahin Akkaya's personal blog - a perfectionist who likes to tinker everything until it is just right. Get ready to find some sweet tips that will boost your productivity and make you fall in love with your computer.Şahin AkkayaHot-Reload Long Running Shell Scripts (feat. trap / kill)2023-01-15T21:48:08+00:002023-01-15T21:48:08+00:00https://sahinakkaya.dev/2023/01/15/hot-reloading-with-trap-and-kill<h2 id="trap-them-and-kill-them"><code class="language-plaintext highlighter-rouge">trap</code> them and <code class="language-plaintext highlighter-rouge">kill</code> them!</h2> <p>There is a beautiful command in Linux called <a href="https://man7.org/linux/man-pages/man1/trap.1p.html"><code class="language-plaintext highlighter-rouge">trap</code></a> which <em>trap</em>s signals and let you run specific commands when they invoked. There is also good ol’ <a href="https://man7.org/linux/man-pages/man1/kill.1.html"><code class="language-plaintext highlighter-rouge">kill</code></a> command which not only kills processes but allows you to specify a signal to send. By combining these two, you can run specific functions from your scripts any time!</p> @@ -210,7 +210,7 @@ killing 3124876 </code></pre></div></div> <h3 id="final-words">Final words</h3> -<p>I think I am started to getting obsessed with <code class="language-plaintext highlighter-rouge">trap</code> command because it has such a good name and it is very useful. FOSS folks are really on another level when it comes to naming. Here is another good one:</p> +<p>I think I am started to getting obsessed with <code class="language-plaintext highlighter-rouge">trap</code> command because it has such a good name and use case. FOSS folks are really on another level when it comes to naming. Here is another good one:</p> <blockquote> <p>- How can you see the contents of a file? <br /> diff --git a/sitemap.xml b/sitemap.xml index 6cb4349..62279b0 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -55,6 +55,6 @@ https://sahinakkaya.dev/assets/docs/resume.pdf -2023-01-16T04:36:37+00:00 +2023-01-16T04:38:14+00:00