linux tag

403 questions


1 answers
134 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

1 answers
35 views
0
I have a question about samba installation in virtualbox and ubuntu.

Hello...I've been trying a few times, but I couldn't, so I'm asking you$sudo apt-get install samba$sudo gedit /etc/samba/smb.conf-----------------------------------------------------------------------...

2 years ago

1 answers
115 views
0
Does anyone know what code ":-!!" is in the kernel header?

The code was imported from /usr/include/linux/kernel.h/* Force a compilation error if condition is true, but also produce a result (of value 0 and type size_t), so the expression can be used e.g. in a...

2 years ago

1 answers
128 views
0
Linux Python Run Results Live File Output

To save the result of python execution in crontab as a file and leave it as a log 1 */8 * * * python3 code.py >> ~/log.txtis in use, but when used in this way, it seems to be logged at once afte...

2 years ago

1 answers
36 views
0
Windows / Linux Multi-Boot

Windows is currently installed on my laptop, and I would like to install and use Linux together.Since there are works that can only be done on Windows, I think using Windows will be the main thing. So...

2 years ago

1 answers
109 views
0
Linux Core Dump... I will attach the result of gdb.

It's almost done, but I suddenly see an error saying what I deleted. Program received signal SIGSEGV, Segmentation fault.__strcmp_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned...

2 years ago

1 answers
29 views
0
Running Linux Commands Within Python

As the title suggests, I want to run Linux commands from Python to code, but I wonder if there is a way!More specifically, I'm currently working on Python on Linux, and I want to write SPICE commands ...

2 years ago

1 answers
64 views
0
How to run subprocess from Linux os to Python

import subprocesssubprocess.run(['ls' , '-al'], shell = true)I'm working on turning other external programs in Python using subprocess.The external program I want to run is a device simulation program...

2 years ago

1 answers
107 views
0
Is there a way to add crontab in Python language in Ubuntu environment?

I want to change the cycle setting of crontab or executable setting flexibly using pythonIs it possible?

2 years ago

1 answers
73 views
0
Is there a way to install Python's pip in the closed network?

There is a closed network server that can be accessed only by VPN. I'm using the Linux (Ubuntu) OS.Python 3.5.2 is installed, but there is no pip installedYou cannot use commands such as piplist.I wan...

« - 39 - »

© 2024 OneMinuteCode. All rights reserved.