I have 4 pc´s and another pc, call it proxy, all being in the same network: 172.16.96.0/20 . I can ping between each other. But, I want to separate them into 2. That is: pc1 is directly connected to pc2 pc3 is directly connected to pc4 But, all traffic from pc1 or pc2 to pc3 or pc4 has to go
Empty string as a output field seperator for Cut
How can I use cut with –output-delimiter=””? I want to join two columns using cut. I tried the following command. However cat -v shows that there are non printable characters. Specifically “^@”. Any suggestions to how can I overcome this? This is the content of my file 011,IBM,Pa…
Making a folder visible for a few selected users in Linux
I would like to share a folder called ‘files’ with user1 and user2 in my Linux account. Is there a way to set the authorizations to read write or execute for only these two users and keep it secure from other users? To my knowledge, it is only possible to do this for a usergroup as a whole. Thank …
Cannot go to the line of the reference
I recently installed cscope Vim plugin to make it easier to jump through code, but the main functionality – go to line, does not work. I have F2 key mapped to “Find all references”. When I select a function call for example, and press F2, I get the list of all the references, and the first r…
Check PDF number pages with PHP (in Linux)
I have a webpage where I let users to upload files to the account folder. Exactly PDF and JPG files only. I want to count the number of pages inside each PDF uploaded to show it to the users. To do this, I was using PDFINFO linux library, part of XPDF proyect. This is the man page of the binary
Jenkins ssh remote hosts and keyfile path differences on slaves
We have a Jenkins server that uses the SSH plugin to configure a SSH remote hosts within the global Jenkins configuration. These ssh connections are using a public/private key for authentication to the remote host. We then use these configured SSH remote hosts in the build step “Execute shell script on …
Logcat show invisible messages in Eclipse Mars
My PC running on Debian Jessie & Logcat’s messages are all invisible on eclipse Mars. I tried a solution here, but no help. What to do now? ———- UPDATE ———- I tried the followings: Change logcat/ddms’s metadata settings in com.android.ide.eclipse.ddms.prefs …
Replace a line with a number if part of it is matches using sed
I know this is a very simple question and been discussed many times, but I can’t understand where I am doing wrong in my command. I would like to replace the lines which starts with “It” as 99999. Each row starts with several blank spaces. I used But it is not working. Answer give this a try…
How to grep a particular pattern
I am trying to get a particular pattern, but i get the result for all possible solutions I did try all the solutions available here How do I get only the PID: 467? Answer If your goal is to grep only for “lubuntu”, not “lubuntu-somethingelse”, then you can add a space afterwards: Or wi…
Why node.js+mongodb does not gives 100 req/sec throughput for 100 req sent in a second?
I kept node.js sever on one machine and mongodb sever on another machine. requests were mixture of 70% read and 30% write. It is observed that at 100 request in a second throughput is 60req/sec and at 200 requests second throughput is 130 req/sec. cpu and memory usage is same in both the cases. If application…