Skip to content

Magenaut

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

process

Use & (ampersand) in single line bash loop

August 11, 2022 by Magenaut

I have been using this command successfully, which changes a variable in a config file and then executes a Python script within a loop:

Categories Q&A, Unix & Linux Tags bash, command-line, process, shell-script Leave a comment

Redirect a file descriptor before execution

August 11, 2022 by Magenaut

I know that I can change the file a program writes to by interrupting the process in gdb, closing using the file descriptor and then re-opening with the file name I want. Is there a way to do the same thing at run time?

Categories Q&A, Unix & Linux Tags file-descriptors, filenames, files, process Leave a comment

Why does process substitution result in a file called /dev/fd/63 which is a pipe?

August 11, 2022 by Magenaut

I am trying to understand named pipes in the context of this particular example.

Categories Q&A, Unix & Linux Tags open-files, pipe, process, process-substitution Leave a comment

Difference between process group and job?

August 11, 2022 by Magenaut

What’s the difference between a process group and a job? If I type pr * | lpr then is it both a process group as well a job?
What exactly is the difference between a process group ID and a job ID?

Categories Q&A, Unix & Linux Tags job-control, process, process-groups Leave a comment

How can I kill a process and be sure the PID hasn’t been reused

August 11, 2022 by Magenaut

Suppose, for example, you have a shell script similar to:

Categories Q&A, Unix & Linux Tags kill, process Leave a comment

change /proc/PID/environ after process start

August 11, 2022 by Magenaut

$ k=v p & [1] 3028 is there any way for p to change the contents of /proc/3028/environ to not mention k=v while p is still running? Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them … Read more

Categories Q&A, Unix & Linux Tags environment-variables, linux, linux-kernel, process, security Leave a comment

Are threads implemented as processes on Linux?

August 11, 2022 by Magenaut

I’m going through this book, Advanced Linux Programming by Mark Mitchell, Jeffrey Oldham, and Alex Samuel. It’s from 2001, so a bit old. But I find it quite good anyhow.

Categories Q&A, Unix & Linux Tags c#, linux, linux-kernel, process, thread Leave a comment

How to make reading and writing the same file in the same pipeline always “fail”?

August 10, 2022 by Magenaut

Say I have the following script:

Categories Q&A, Unix & Linux Tags bash, io-redirection, pipe, process Leave a comment

Process with weird random name consuming significant network and CPU resources. Is someone hacking me?

August 10, 2022 by Magenaut

In a VM on a cloud provider, I’m seeing a process with weird random name. It consumes significant network and CPU resources.

Categories Q&A, Unix & Linux Tags centos, process, systemd Leave a comment

How can I get the pid of a subshell?

August 10, 2022 by Magenaut

How can I get the pid of a subshell?

Categories Q&A, Unix & Linux Tags bash, process, subshell Leave a comment
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … Page12 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