I have a php framework is running on linux machine basicly every requests redirect to index.php by .htaccess One of my php started to run %100 CPU i want to track which progress is that but when i check process with ps aux | grep 23791 As normal, request redirect to index.php.But i have to find which request is this.
Non-greedy repeat in gnu regular expression
I’m writing a network related program in linux. the program is in kernel space and not user space. All I need in this program is a regular expression library that supports all gnu regex library features plus non-greedy repeat. Is there any such library that has those features and also I can compile and use it in kernel space? Answer
Setting limit to total physical memory available in Linux
I know that I am supposed to set mem=MEMORY_LIMIT. But I do not know where to go, during runtime, or during boot time, in order to set a limit to the total physical memory that the OS has control of. I am running I/O benchmarks, and I would like to limit the amount of overall physical memory that is available.
Linux C or C++ library to diff and patch strings? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations. Closed 7 years ago. Improve this question Possible Duplicate: Is there a way to diff files from C++?
Save argument ${1} passed to a shell script in a variable within shell script
I want to save ${1} argument passed to my script (${1} is a file path) into a string variable within the same shell script, and then echo the path using echo variable and not echo ${1}. Answer Simply try doing this :
opening a shell and interacting with its I/O in java
I am trying to open a shell (xterm) and interact with it (write commands and read the shell’s output) Here is a sample of code which won’t work: When I execute this program an “xterm” window opens and the “ls” command is not entered. Only when I close the window I get a “-1” printed and nothing is read from
Convert a time span in seconds to formatted time in shell
I have a variable of $i which is seconds in a shell script, and I am trying to convert it to 24 HOUR HH:MM:SS. Is this possible in shell? Answer Here’s a fun hacky way to do exactly what you are looking for =) Explanation: The date utility allows you to specify a time, from string, in seconds since 1970-01-01
CentOS Subversion, Basic Auth Password file not working
So i have SVN installed and using HTTPD for a remote repository. All works well, until i use the password file. This is not working at all. Apache’s error_log says (13) Permission Denied: Could not open password file I have set the passwd file’s chmod to 777 and chown to apache, I also set the parent folder of the repo
wget: Unsupported scheme on non-http URL
I have the following line in my shell script: When I tried to run the script it give me the following error: Does it mean wget supports http and ftp ONLY? Answer man wget shows: It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies. Try curl, it supports file URLs. Also note you probably want
Sort files numerically in bash
I need to sort .flv files numerically and i was able to do it with the following command: but with many files(hundreds) it’s not sorting correctly. but the strange this is, if i’m ruining the command without “*.flv” it’s working. i could use just ls but i have other file types in the folder. what i’ve tried so far: Answer