Skip to content

Is it possible to get the version of a shared object?

I’m trying to track down a bug in my software line. I have two release build version 2.0.962 and 2.0.966. The only difference between these versions is a lib.so file. In order to figure out where to start looking in the source tree for lib.so, I need to know its version number in each of the release bui…

Is there a bug in “zgrep -H”?

Just tried grep and zgrep on following test file: I also need the file-name printed, so I’ve added the -H switch and stepped on the following problem: E.g. depending on POSITION of -H switch in the command-line – the behavior is different for me and the issue always reproduces 🙁 One more test: Her…

Configure saucelabs for jenkins

I am trying to run my protractor tests on my Jenkins server which happens to be a Linux box (Red Hat Enterprise Linux Server release 6.6) which has no browser. So i did some research and realized I would have to use saucelabs. I do have saucelab account. So i was confused on how to edit my conf.js file and

Trigger CURL Request after boot using systemd

I’m trying to create a service that will trigger every time a raspberry pi boots. Currently the service runs a really simple script that sends a POST request to a web service endpoint I control. I can trigger said script manually and that part all works perfectly. I’m struggling with the next step…

linux rename multiple files using rename

I have a bunch of files (several thousand) called: output.temp.1.csv output.temp.2.csv output.temp.3.csv etc. I would like them all to be renamed but having the .temp removed output.1.csv output.2.csv output.3.csv etc. I think rename is what i need but not sure how to go about doing it I tried: rename ‘…

Executing an external program when forking is not advisable

I have this a big server software that can hog 4-8GB of memory. This makes fork-exec cumbersome, as the fork itself can take significant time, plus the default behavior seems to be that fork will fail unless there is enough memory for a copy of the entire resident memory. Since this is starting to show as the…

.htaccess RewriteRule keeping URL structure

My current rewrite rule: The result above works great so I can format the URL like domain.com/a/b/c I would like to add in a domain switch as well so the results I want is sub.domain.com/a/b/c when you access it using domain.com/a/b/c Currently here is what I have tried But the result of this is http://sub.do…