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…
Redirecting the output of a virtual printer to a Python script
My intention is to achieve the following scenario: A Windows or Linux user gives the command to print a document (using Ctrl+P) and views a dummy printer (virtual printer) in the list of available printers The user selects the printer and gives the print command Instead of actually printing, the dummy printer…
Running and installing missing modules for script through SSH
I want to run a python script on a Linux Box(I’m connecting to it through SSH on OSX terminal). In order for this script to run, the computer must have the SUDS module installed. I was wondering what would be the best way to install SUDS on computers that run my script and do not have SUDS installed in …
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 C sending data from child to parent is fine, but fail to send data from child to parent
I would like to fork a child and connect pipes to the stdin and stdout of child. And then run the exec ./xx. After that I send 17 from parent to child and child print it. all good so far. but when I send a 17 return to parent it doesnt work. The result is : output nothing and look
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…