Skip to content

Magenaut

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

scripting

Integration of afuse user-level automounter with sshfs as a systemd service spawned from login for local users

August 10, 2022 by Magenaut

Edit 2020: I’ve been using the systemd-answer posted below for several years now, and am quite happy with it.

Categories Q&A, Unix & Linux Tags automounting, linux, scripting, sshfs, systemd Leave a comment

Commands for determining level of usage of server

August 10, 2022 by Magenaut

I am scripting a new program that will connect to a cluster of machines in a VM park, and hopefully check their level of usage.
The VM clients are a combination of RHEL and CentOS, and runs on multiple KVM hosts.

Categories Q&A, Unix & Linux Tags centos, rhel, scripting Leave a comment

Can I use a variable in a Bash brace expansion?

August 10, 2022 by Magenaut

Below is some sort of pseudo-code for what I’m trying to accomplish:

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

How can I get the current working directory?

August 10, 2022 by Magenaut

PWD

Categories Q&A, Unix & Linux Tags bash, directory, scripting, shell Leave a comment

Object-oriented shell for *nix

August 10, 2022 by Magenaut

Preface: I love bash and have no intention of starting any sort of argument or holy-war, and hopefully this is not an extremely naive question.

Categories Q&A, Unix & Linux Tags architecture, bash, scripting, shell Leave a comment

Bash: calculate the time elapsed between two timestamps

August 10, 2022 by Magenaut

I have written a script that notifies me when a value is not within a given range. All values “out of range” are logged in a set of per day files.

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

How can I propagate my SSH pub key to a list of servers without having to type my password in over and over?

August 10, 2022 by Magenaut

I was recently given username/password access to a list of servers and want to propagate my SSH public key to these servers, so that I can login more easily.

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

How to send variable to an inline shell-script?

August 10, 2022 by Magenaut

I run the following script:

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

reason for exec in wrapper scripts

August 10, 2022 by Magenaut

I have seen wrapper script examples which in a nutshell are following:

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

Count records matching pattern with Awk

August 10, 2022 by Magenaut

So I was told to do last > lastloggedin which creates a file that shows the classes last login since the last system reboot, and now I am asked to write an Awk script which is named myawk that counts/determines how many lines of lastloggedin contain the string CFS264.

Categories Q&A, Unix & Linux Tags awk, scripting, text-processing Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 … Page8 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