Skip to content

Tag: linux

Simulate VPN connection in docker

I want to simulate a VPN traffic on my machine. I’ve set up VPN server which runs inside a docker image. I can successfully log in. The problem is that the docker image is running on my machine on the default docker’s bridge – docker0. There is no change if I do connect to machine using VPN …

Getting a pipe status in Go

I’m unable to get a pipe state in Go (1.5). While writing on a mkfifo created pipe, I try to get the state of this output pipe: using the Write return status EPIPE using the Write return status EPIPE and signal.Ignore on SIGPIPE (just in case) using signal.Notify on SIGPIPE I can see that: EPIPE is neve…

/bin/sh: 1: arm-linux-gcc: not found on ubuntu

I m trying to build using gcc arm cross compiler and i get following error Building file: ../src/application.c Invoking: GCC C Compiler arm-linux-gcc -O3 -Wall -c -I -fmessage-length=0 -MMD -MP -MF”src/application.d” -MT”src/application.d” -o “src/application.o” “../s…

How to make pipe run sequentially

Specs Don’t think this should make a difference but I’ll include it anyway GNU bash, version 3.2.51 Premise So say i have a pipe with multiple parts, how can I prevent part of the pipe running before the previous part is finished. Example In the below examples I will try to display the issue Outpu…

AWK remove duplicate line based on two conditions

I am trying to remove duplicates based on the value of the 2nd field. The lower value of the 2nd field should be retained, any line with repeated 1st field and higher 2nd field should be removed. This is an example of my raw data: Here is how it should be: So far, based on this post: I came up