r/linux_programming • • Sep 24 '23

I use Arch BTW

Thumbnail
gallery
5 Upvotes

r/linux_programming • • Jul 07 '23

Binary dies on using tee

5 Upvotes

So I have this program written in C++ that outputs some statistics on standard op. I need to capture this in another file. For this I have been using the command: ./my_bin | tee abc.txt.

I recently got a new machine running Ubuntu 22.04 with kernel 5.15.0-75-generic but now my binary dies when I run it with tee, > works fine only tee causes the crash.

Running with GDB shows segfault in pthread_get_name_np but the same binary runs fine on another machine. I don't know how to debug this ? Can anyone help.


r/linux_programming • • May 22 '23

Announcing my first e-book – Awk One-Liners Explained

Thumbnail
catonmat.net
5 Upvotes

r/linux_programming • • Nov 29 '22

linux-regex-module

5 Upvotes

r/linux_programming • • Sep 06 '22

How do I find the MAC Address?

5 Upvotes

Hello everyone,

I have a pretty basic question for you guys. I have a Software defined radio connected to my Linux laptop, and I'm trying to find its MAC address. What can I type in the terminal to find it? It is connected by USB.


r/linux_programming • • Aug 30 '22

LKML: "Jens Glathe": [PATCH] fix: add XHCI_SPURIOUS_SUCCESS to ASM1042 despite being a V0.96 controller

Thumbnail lkml.org
5 Upvotes

r/linux_programming • • May 06 '22

Any advices or ideas ?

5 Upvotes

I’m trying to create a package manager for my Lfs system, and I don’t really know how. In what language , should I use a database, etc…( I know it’s probably stupid and useless and I could use brew or apt or something but I think it good for learning) .


r/linux_programming • • Mar 17 '22

In trying to understand udev_monitor's working...

5 Upvotes

Hi everyone! I want to check a enable a usb device during connect/disconnect from computer in real time. For it I use udev's mechanisms (enumerate, monitor) and check PID's and VIM's values devices which are being in computer. But additionally I want to send message to my device and take results for more believe. Connect/disconnect monitoring without send packages works well and vise versa. Separately, it works well, but both - not so. When i take result, program is being freeze. What's can be wrong?


r/linux_programming • • Dec 28 '21

Window Manager with Xlib and Qt

5 Upvotes

Would it be possible to use Xlib for the backend of the window manager (opening, closing, resizing) and Qt as the user interface that is used to trigger those events? Basically, the user would open an application and then a parent window, made using Qt, is created for that application that has the window decorations.

EDIT: Would it be possible to not use Xlib at all and just stick to using Qt since it has a lot of the functions of Xlib?


r/linux_programming • • Dec 22 '21

I am trying to use Ubuntu on a virtualbox and program in PHP/MySQL

5 Upvotes

Can anyone help me do this? I have downloaded oracle virtualbox and don’t know where to go from here.


r/linux_programming • • Nov 23 '21

Is there any structured pattern for command/log outputs?

5 Upvotes

Is there any structured output pattern for commands? In addition to plain text :) , which can be extended to log outputs .

I found myself thinking about some pattern similar to what posix is, but aimed at logging and outputting commands. I think of something similar to a json, using standard terms (like in SQL) example timestamp, user, pwd, default structured output etc.

imaginary example, output ls command

{
  "return_structured_output": {
    "folders": [
      "folder"
    ],
    "links": [
      "link"
    ],
    "files": [
      "file"
    ]
  },
  "timestamp": 1637680386,
  "user": "root"
}

Different commands could meet these standards by passing some parameter on the command line, thus keeping the text clean for compatibility.

I think some standard for log output and output other than plain text would make it much easier to integrate between tools, commands without our wonderful obscure AWK :)


r/linux_programming • • Mar 22 '21

Why does the pid changing?

5 Upvotes

Hi,

I have a question: I've tried to run a Indie Horror Game named Concluse but it don't started. But when I see the results of ps aux there is a process. So I tried to kill it but kill and killall said that nothing was found. But when I look at ps aux I see that the pid of the process was changed. And everytime I kill the process it get a new pid.. WTF is that? I started the Game as root because it hasn't worked otherwise but it failed again.. and it's only a Livesystem I use this time cos by lack of other opportunities. :D


r/linux_programming • • Feb 24 '21

How to Convert Mouse Movement to Scrolling?

5 Upvotes

I'm gonna be getting a trackball soon that is missing a scroll wheel, and I think I'd be able to deal with it if I was able to system-wide convert mouse movement events into mouse scroll events by toggling something (a.k.a. run a script to switch between them with a macro on my keyboard). Does anyone have any ideas on how to convert these events system-wide or a different subreddit I should be asking in?


r/linux_programming • • Oct 30 '19

Is there a C library call that already does this? Check all directories in $PATH for existence and execution permissions of a binary

5 Upvotes

kiss smile spotted punch disgusted unpack cheerful wide humorous boast

This post was mass deleted and anonymized with Redact


r/linux_programming • • Sep 29 '19

System call hooking api (Linux, FreeBSD and NetBSD)

Thumbnail
github.com
5 Upvotes

r/linux_programming • • Dec 13 '18

[Will pay if you help to solve] How to increasing the number of threads available on Linux?

5 Upvotes

Hi I know pretty much nothing about programming but I bought a dedicated server that is running cent6 I changed the SSH port and created a new user for connecting and using the server and disables root SSH connections if that matters. I bought it to run multiple processes on it and with the specs it has I should be able to run a lot but I can't because there is a limit on the number of threads. How do I increase that number on the server? I was reading into this but I have no clue where to even begin. https://support.cafex.com/hc/en-us/articles/202508492-Increasing-the-number-of-threads-available-on-Linux Do I use putty for this? If anyone can help me with this I will pay you $25 in bitcoin or venmo.


r/linux_programming • • Jan 20 '18

android notifications integration with Linux DE

Thumbnail
youtu.be
5 Upvotes

r/linux_programming • • Nov 30 '17

Please take my survey to tell me a little about how much programmers know about Quantum Computing!

Thumbnail kwiksurveys.com
5 Upvotes

r/linux_programming • • Jul 20 '17

A marketplace for system utilities

Thumbnail
peddle.io
5 Upvotes

r/linux_programming • • Dec 19 '16

I wrote a Utility to fix the tilt wheel for the Patriot Viper V560 mouse

Thumbnail
github.com
5 Upvotes

r/linux_programming • • Oct 09 '16

This Tool Uses GitHub to Make Music

Thumbnail
runtimerror.com
5 Upvotes

r/linux_programming • • Dec 16 '15

I've recently started working on a display server based on the idea of wrapping Webkit to do all the rendering and windowing. Not much substantial functionality yet but what do you guys think of the concept?

Thumbnail
sourceforge.net
5 Upvotes

r/linux_programming • • Feb 07 '15

How programs get run

Thumbnail
lwn.net
5 Upvotes

r/linux_programming • • Dec 01 '14

I'm Greg Kroah-Hartman, Linux kernel developer, AMA! [x-post /r/linux]

Thumbnail
reddit.com
5 Upvotes