Skip to content

Docker containers as Linux services?

I just created a secure Docker Registry and ran it on a remote VM (using docker run …). I then ran docker ps and saw that it is in fact running. I exited the machine and then SSHed back in. Again, I ran docker ps and verified it “survived” me exiting the SSH session. This has me wondering: d…

fgets return less characters

I’m writing an assembly program for practice. The assembly program uses the c library functions. I’m concern in particular with fgets() function. The fgets manual page states: I have declared a buffer of 1024 bytes and used it in the fgets funtion to read text from a file. But the program is retur…

Linux, C, epoll(), read() data incompleted?

Linux, C. Below issue only happens by using epoll(). If I use select() on server socket, there is no data loss. ============================= Update: I received errno =11 (Try again) in read(). Do I need to continue, or break the while loop? ============================= I have client side, send 1280 K data i…

there is any way to open and read a file over a SSH connection?

I have an access to some server where there is a lot of data. I can’t copy the whole of data on my computer. I can’t compile on the server the program I want because the server doesn’t have all libs I need. I don’t think that the server admin would be very happy to see me coming and as…

What is the epoch of CLOCK_TAI?

Since Linux kernel version 3.10, the function clock_gettime() now accept CLOCK_TAI. I didn’t manage to find a detailed description of this clock. What is its epoch ? EDIT 1: Just compared the output of CLOCK_REALTIME and CLOCK_TAI on my Linux 3.19 OS and it returns the exact same value (1442582497) !? I…

Linux cut pattern from log file

i have json log file but theres not only json i need to cut/remove everything what isnt json, structure looks like this: i tried cut -d command but it doesnt work for me Answer This did the work:

Linux: Port Isolation on a Bridge to use OLSR correctly

On a router running OLSR there are four ports/interfaces where connected devices talk OLSR to each other. Now i dont like to use an IP address for each interface but instead bridge them all and set just one IP address on the bridge. The problem now is, those devices should NOT see each other on layer2, else o…