Best practices
0 votes
3 replies
124 views
Filtering packets using recvfrom() and MSG_PEEK
I've got a UdpPeer class: class UdpPeer { struct sockaddr_storage remoteAddr; socklen_t addrlen; public: UdpPeer(struct sockaddr_storage const& addr, socklen_t addr); void ...
- reputation score 91
Score of 0
1 answer
85 views
csh script calling some .sql scripts but not others
I have a csh script set up to run multiple .sql scripts within SQLPLUS. It is running some scripts, but not others. The scripts all work as expected when run individually in SQLPLUS, so I know the ...
- reputation score 539
Score of 3
1 answer
117 views
Are contents within parentheses executed last?
I came across this line in my homework: (cat "$@" 2>&1 >&3 | tr a-z A-Z >&2) 3>&1 Is the 3>&1 executed first to create a file descriptor 3 pointing to ...
- reputation score 55
Advice
0 votes
11 replies
85 views
How do you use files with spaces in a (Linux)for?
I use Cygwin under Windows. Under windows I have created files with spaces in them. I would like to remove the spaces. There are enough files so that doing them individually is impracticable. I have ...
- reputation score 1110
Score of 0
1 answer
228 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 ...
- reputation score 1262
Score of 1
0 answers
79 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. ...
- reputation score 5717
Score of 2
0 answers
86 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)....
- reputation score 5717
Score of 2
5 answers
236 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 ...
- reputation score 155
Score of 0
1 answer
83 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:...
- reputation score 11