47,584 questions
0
votes
0
answers
51
views
RPC communications in Mattermost plugins and Apache-APISIX plugins, Is RPC only for Golang - Golang?
I’m trying to understand how plugin systems differ between Mattermost and Apache APISIX, specifically in how they use RPC for external plugins.
Mattermost plugins must be written in Go. The server ...
0
votes
1
answer
81
views
Deploying chaincode failed, socket is broken
We are running a Fabric test network on an Ubuntu virtual machine. The test network starts up fine using:
./network.sh up createChannel -ca
However, it fails when deploying chaincode. The chaincode ...
1
vote
0
answers
48
views
Resource colors for XmContainer and XmScrolledWindow
I have the following structure:
XmScrolledWindow -> XmContainer
I am struggling to identify which resources control:
a) the border that surrounds the XmContainer when scroll bars are required. ...
2
votes
0
answers
69
views
How to display a label as message window in Motif MainWindow
I want to use the Motif MainWindow using:
A container as work region
A label as message window.
But the label is not shown.
My expectation is that it would be shown below the container (work region)....
3
votes
5
answers
202
views
Using a function to format any list of PATHs
I have this alias to format $PATH into one line per path:
alias path='sed ''s/:/\\n/g'' <<< "$PATH"'
I tried to specify the env var to list, like path $MANPATH but still with a ...
4
votes
1
answer
98
views
How to copy sparse files in Python so that both source and destination have identical size?
The following example script does the following:
Uses truncate to create a 200MB sparse file in /tmp/example/1/sparse.
Uses shutil.copy2 to copy the newly created file to /tmp/example/2/sparse.
Uses ...
0
votes
1
answer
71
views
Error while replacing a variable with a logic in UNIX
I am running below in UNIX,
UOW="20251013115437"
echo ${UOW}
UOW_STR=${UOW:0:4}"-"${UOW:4:2}"-"${UOW:6:2}" "${UOW:8:2}":"${UOW:10:2}":"${UOW:...
4
votes
1
answer
146
views
Is futex essentially an unique integer? any way to expose it by user space code?
So I once learned that UNIX futex is in essence an unique integer, is this statement correct and complete?
If that is true, can I somehow take advantage of it to help avoid deadlock by always locking ...
0
votes
1
answer
38
views
Generic/multi-FS alternative to the XFS_IOC_RESVSP64 ioctl?
The XFS filesystem has (or used to have) a IOCTL named XFS_IOC_RESVSP64 for reserving space: You called it with a given file descriptor, and the XFS driver reserved an amount of space use by for your ...
0
votes
0
answers
80
views
PPP connection emulation
I need to create a virtual PPP connection that I can configure and capture into PCAP files. The goal is to set up a PPP link with protocol-field-compression and FCS-alternatives options in LCP (the ...
2
votes
1
answer
107
views
`pthread_kill` randomly send signal to the wrong thread on MacOS
I have multiple threads performing sigwait on the same signal, and the main thread will wake specific thread up via pthread_kill. On Linux the program runs fine, but on MacOS the wrong thread will be ...
2
votes
0
answers
204
views
How do I connect to my own C server from another machine on same network? [closed]
I can connect a Unix server and client socket just fine, but only if they are on the same machine.
My code does not work even if they are running on separate machines connected to the same router.
To ...
3
votes
0
answers
167
views
Read file and get the real path at the same time
In C on linux, given a file path, I'd like to read the file contents, and also I'd like to know the real path with any symlinks resolved. I can do those things separately (e.g. open() + read() for the ...
0
votes
2
answers
63
views
How to add in unix a field from an xml file to a different section of that same xml file
I have a problem with an xml file. It has a section called creditnotes and inside a section called items that can have one or more subsection item.
My etl tool is not able to load both sections at the ...
-1
votes
1
answer
63
views
Sorting text lines by a field formatted as time stamp with shell commands [closed]
I want to sort lines with time format strings using shell command.
Shell shall be a common linux shell.
Example input:
results/fn_a:# Generated on: Mon Jul 21 17:20:48 2025
results/fn_b:# ...