Skip to content

Tag: linux

How to do parsing of Elapsed time in seconds in linux

I want to do parsing of Elapsed time in seconds .Time formats given below: i’m getting values from systemctl status cassandra | awk ‘/(Active: active)/{print $9, $10,$11}’ Now storing it’s value in variable A,like now A has input as 3 day 18h or 3 day etc. More examples- A=3 day 18h or…

How to pass additional arguments for docker daemon

I have under /etc/sysconfig/docker , the following configuration :- Now I am using docker version 17.03.1-ce on Red Hat Enterprise Linux Server release 7.4 and default storage driver as overlay that is causing lot of build issues due to :- After doing a bit of research on the internet figured out to get rid o…

Converting from batch to shell

I have a set of batch commands that I’m trying to convert to shell so I can use them on my linux environment. The command should read In windows (using batch), running this command should produce a set of files that are numbered like this: 0001_inside.hdr 0002_inside.hdr etc. However, when I ran this co…

./configure + endless loop

Am trying to build/install LFTP in Centos 7 and can’t get past an endless loop at ./configure stage. Steps I’ve taken: Then I see an endless loop of: Any suggestions/tips appreciated. I’ve tried to use a prefix with ./configure too but that doesn’t help. Answer As discussed in the comm…