I’m developing a shared library for linux machines, which is dynamically loaded relative to the main executable with rpath. Now, the library itself tries to load other libraries dynamically relative to its location but without rpath (I use scandir to search for shared libraries in a certain folder ̵…
GAE gcloud dev_appserver.py PHP: Failed to read session data: user (path: Memcache)
I run a local Google Cloud App Engine emulator for my PHP (runtime: php55) app. It works, except for PHP sessions. I get the following message: I start the app with the following command So I run using php-cgi. Before this I tried to run with regular php but then I got a WSOD. In a Google Group it was
Provision headers are shown error in google chrome when using apache virtual host
I have to tomcat servers running in my server. And I wanted to do a virtual host routing. So initially I tried it with one tomcat which is running in 8081 port and ajp port enabled to 8011 in the tomcat server.xml file My conf file in the /etc/apache2/sites-available/mydomain_name.com.conf looks likes this Th…
Possible to read the last line of a linux gnu-screen?
I’m trying to make a simple and reliable script, preferably in bash, that is executed every minute using crontab. The script simply has to read the contents of the last couple of lines of an open screen and store them as a var so that I can search for a sub-string. Does anyone know of an easy way to do
Virtualenv uses wrong python, even though it is first in $PATH
I had a problem where python was not finding modules installed by pip while in the virtualenv. I have narrowed it down, and found that when I call python when my virtualenv in activated, it still reaches out to /usr/bin/python instead of /home/liam/dev/.virtualenvs/noots/bin/python. When I use which python in…
Can I use ssh to login another host and automatically “su” to another user? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
Pass filename from Nautilus to shell script
I am trying to execute a shell script that gets for an argument a file name. I can do it if I go to the terminal and type the full PATH. But I am trying to make this more user friendly so I what I want to do is to send the argument (complete path) from the file manager or
Tired of creating /run/postgresql and setting read and execute writes after every reboot
I’m running Arch Linux, I installed PostgreSQL as any other arch package. I’m running postgres with a local database located in my user directory. (postgres -D /home/user/data/) When I do so, I get the error FATAL: could not create lock file “/run/postgresql/.s.PGSQL.5432.lock”: No suc…
Bash alias cpu usage
I’ve tried this command but I have a percentage error calculator: Thank you for help Answer Change it to this: was missing after 100 -.
Resolving symbols differently in different dynamically loaded objects
After reading these questions, I’m looking for some more detail about how to control symbol resolution order. In my problem, I have main executable exec. exec dynamically links to a.so and c.so. a.so dynamically links to b.so. b.so calls function foo, which is normally provided by c.so but in this case …