Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

shell-script

What’s the advantage of mere Ansible on mere shell-scripting if one doesn’t use communally-maintained Ansible-Galaxy roles?

August 8, 2022 by Magenaut

“not sure I understand idempotent well enough to understand the answer”.

Categories Q&A, Unix & Linux Tags ansible, scheduling, shell-script, software-installation, upgrade Leave a comment

Replace log file without affecting “Redirection of stdin and stdout” using nohup

August 8, 2022 by Magenaut

production.log

Categories Q&A, Unix & Linux Tags bash, cron, linux, shell-script Leave a comment

Udev: running a shellscript that accesses an X display

August 8, 2022 by Magenaut

After getting my 3g-modem to work in Arch Linux I wanted to eliminate some manual labour required in the process. Hence I needed to create an udev rule. After some trial and error I came up with the following rule named 11-my-rule.rules which I placed at /etc/udev/rules.d/: # start at sdb to ignore the system … Read more

Categories Q&A, Unix & Linux Tags arch-linux, shell-script, udev, x11 Leave a comment

How do I create a service for a shell script so I can start and stop it like a daemon?

August 8, 2022 by Magenaut

I’m using CentOS 7 what my aim is to create a cron for every five seconds but as I researched we can use cron only for a minute so what I am doing now is I have created a shell file.
hit.sh

Categories Q&A, Unix & Linux Tags centos, cron, services, shell-script, sysvinit Leave a comment

Can I write the output the of time difference command to a file?

August 8, 2022 by Magenaut

Can I write the output of the time difference command to a file?

Categories Q&A, Unix & Linux Tags bash, io-redirection, shell-script, time Leave a comment

Why does this script not accept two arguments?

August 8, 2022 by Magenaut

Code

Categories Q&A, Unix & Linux Tags shell-script Leave a comment

-c and -b options not working in mailx in ubuntu

August 8, 2022 by Magenaut

I was trying to send a mail from the shell script using the command

Categories Q&A, Unix & Linux Tags io-redirection, mail-command, mailx, shell-script, ubuntu Leave a comment

Separate environment with different /bin/sh

August 8, 2022 by Magenaut

I have a bunch of shell scripts which incorrectly assume /bin/sh to be equivalent to /bin/bash. E.g., they have the #!/bin/sh shebang, but use the source command instead of . (dot).

Categories Q&A, Unix & Linux Tags bash, shebang, shell-script Leave a comment

Finding the correct tmp dir on multiple platforms

August 8, 2022 by Magenaut

I have a script that needs to create temporary files for its work, and clean up after itself. My question is about finding the right base directory for the temporary files.

Categories Q&A, Unix & Linux Tags directory, shell-script, tmp Leave a comment

Delete the last character of a string using string manipulation in shell script

August 8, 2022 by Magenaut

I would like to delete the last character of a string, I tried this little script :

Categories Q&A, Unix & Linux Tags shell-script, string Leave a comment
Older posts
Newer posts
← Previous Page1 … Page15 Page16 Page17 … Page24 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress