I have the following problem: I currently connect to one of our Linux servers using PuTTY on my Windows 10 machine. If I use a ‘standard’ PuTTY connection I have no problem: I can log in and run my Perl script to access an Oracle database on the Linux server. However, recently I have set up a new PuTTY connec…
How to start compilation of Krusader?
My question is simple. It is probably something obvious what I am missing… I downloaded Krusader (file manager) source, from their webpage in .tar.gz. I unpacked it and want to compile, but there is no ./configure, no make, no make install. The install.txt file is not clear for me. There is information …
Why compiled code creates corrupted file in windows in linux works fine [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 5 y…
Iterate Variables of array into command which itself is a variable bash
I am almost there, the “$i” is where I am having trouble. I have tried ${i}, “$i”, $i. I am sure someone with more experience can help me here I have been working on this for 1 full day. Driving me nuts. Answer That $i is expanded at the moment you define the sts array. After that, it …
How to run iterations asynchronously in shell script
I have a few .csv files like below. xyz0900@1#-1637746436.csv xxx0900@1#-1637746436.csv zzz0900@2#-1637746439.csv yyy0900@1#-1637746436.csv sss0900@2#-1637746439.csv I have written a script to perform below tasks: Get the large file based on the pattern which we have passed as a argument to the script. Merge …
Which OS / platforms implement wait morphing optimization?
Which major OS / platforms implement wait morphing? This question came up when I noticed that there’s no clearcut best practice about whether one should signal a condition variable with mutex locked or not. A typical recommendation is to signal while holding the lock unless profiling shows a substantial…
How to parse a particular MAC address from DHCP lease file in Openwrt?
I am trying to write a script to parse some of devices from DHCP lease file in Openwrt with corresponding addresses . I am maintain a list with some vendor MAC address . When i connect a device to the router , i want to fetch the IP address ,MAC address and Name of that device using the vendor MAC
ELF label address
I have the following code in .s file: Its object file has the following: After linking, it becomes: How does the argument 0x0 to pushq at byte 20 of the object file gets converted to 0x400578 in the final executable? Which section of the object file contains this information? Answer You answered your own ques…
Grep Pattern matching- underline
I’ve not been able to find anything online to help so hoping someone may have an idea. What does an underline in an expression mean when using grep? For example: [_a-zA-Z0-9] Could someone help to explain the purpose here? Answer The grep command uses a regular expression as it is also described in the …
Find the average of multiple columns for each distinct variable in column 1
Hi I have a file with 6 columns and I wish to know the average of three of these (columns 2,3,4) and the sum of the last two (columns 5 and 6) for each unique variable in column one. I have come across code that will get the average for column 2 based on column one but is there anyway