Skip to content

Bash poweroff script hangs system

My intention is to cycle through my list of ips and poweroff if my ping succeeds first. However the systems seems to hang. After running this script I can’t ping the systems anymore and they aren’t powered off. If I run ssh 192.168.1.ip “sudo poweroff” through terminal I dont encounter…

Replace characters on specific location every line

We got an exercise where we have to do certain things with the following text document: It’s all data seperated by a “|”. For this exercise, if the year of the first ascent is empty, I need to replace the “||” with “|unclimbed|” I can’t do it like this: Because …

Kubernetes on 32 bit machine

While I was running kubectl command in my ubuntu 16.04 os which is a 32 bit machine, I was getting cannot execute binary file: Exec format error Can some one tell me whether Kubernetes works on 32 bit machine or not ? Answer Currently there are no ready-made binaries for 32bit systems at: https://github.com/k…

Units of tx_queue & rx_queue in /proc/net/tcp

On a Linux 2.6.32, i’m looking at /proc/net/tcp and wondering what is the unit of tx_queue and rx_queue. I can’t find this information about receive-queue and transmit-queue in https://www.kernel.org/doc/Documentation/networking/proc_net_tcp.txt Nor in man 5 proc which shows only: The “tx_qu…