Skip to content

Tag: linux

symmetric bandwidth usage mysql

I have 2 servers. Server A is where I have scripts that download html files from websites and then insert those texts into a MySQL server that its on server B. Server B, at least for now, is just for Writing to MySQL, we dont read (select) to that server. Data is downloaded using a PHP Script and another PHP

Split string in ksh

I got a string as follow : What would be the best way to convert it in seconds without using date ? I tried something like this that sounded pretty nice but no luck : Any idea is welcome, I just can’t use date -d to make conversion as it is not present on the system I am working on.

Duplicate static variable initialization in C++

I build a shared library “libMyLibrary.so” with a class “MyClass” that contains a static variable of type “MyClass”. Then I build an executable “MyLibraryTest” that I link against “libMyLibrary.so”. The main program uses “dlopen” to load …

nohup “does not work” MPIrun

I am trying to use the “nohup” command to avoid killing a background process when exiting the terminal on linux MATE. The process I want to run is a MPIrun process and I use the following command: when I leave the terminal, the processes running on the different cores are killed. Also another thin…

How to access python return value from bash script

I’m trying to understand how to access from a bash script the return value of a python script. Clarifying through an example: foo.py start.sh If I run the bash script, this prints the message “exec main..”. How can I store in script_output the return value (execution ok)? If I direct executi…