posix tag

5 questions


1 answers
303 views
0
Why was POSIX needed?

What is POSIX?UNIX has spread and a lot of derivatives have emerged, but it's becoming less cohesive, so it's stipulated to maintain compatibility.There is an explanation like this.What was the situat...

1 years ago

1 answers
132 views
0
Get subprocess.Popen stdout and stderr in real time

After processing the contents of stdout and stderr of the child process with python's subprocess.Popen, I would like to output them to the parent's stdout and stderr in real time and in order, respect...


1 answers
73 views
0
To what extent does the variable expansion in a double quote work correctly?

For example, suppose you created a pseudo cp in a shell script in the following format:#!/bin/shcontent=$(cat$1)printf'%s\n'$content>$2In most cases, the difference between the contents of the file...

1 years ago

2 answers
92 views
0
I want to achieve 32-bit right rotation with posix shell.

I wanted to know how far the posix shell alone can calculate, and I wanted to know how bit calculations can be realized.(In particular, I was trying to implement sha256/md5) I would like to achieve a ...

1 years ago

1 answers
128 views
0
Ubuntu C++ error: undefined reference to 'clock_gettime' and 'clock_settime'

#include <iostream>#include <time.h>using namespace std;int main(){ timespec time1, time2; int temp; clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time1); It's like a party clock_gettime(CL...

2 years ago

© 2024 OneMinuteCode. All rights reserved.