On an embedded system (Linux kernel 2.6.28 on ARM processor using glibc 2.6.1) I am running an application consisting of multiple threads. I would like one of those threads to get more CPU time than the others.
One option for setting priorities seems to be to use pthread_setschedparam with SCHED_RR (or SCHED_FIFO), however this gives th...
I'm on a server running a Linux shell.
I need to mail a simple file to a recipient.
How to do this, prefereably using only the mail command?
UPDATE: got a good solution, using mutt instead:
$ echo | mutt -a syslogs.tar.gz [email protected]
...
Jonathan Leffler's comment in the question "How can I find the Size of some specified files?" is thought-provoking. I will break it into parts for analysis.
-- files are stored on pages;
you normally end up with more space being
used than that calculation gives
because a 1 byte file (often) occupies
one page (of maybe 512...
While Windows releases of MySQL administration and profiling tools seem to be a dime a dozen, I'm having a very hard time finding very many designed for Linux.
Note that I'm not looking for monitoring software ala Nagios/Munin here. This would be something more along the lines of a SQLYog.
While I could write some basic scripts to han...
Hi.
I'm currently using shared memory for IPC between Java and C++ apps, but looking for a more convenient alternative.
Can someone advice better method, but with same performance speed?
Thanks!
...
Hi.
Does someone know how well the following 3 compare in terms of speed:
shared memory
tmpfs (/dev/shm)
mmap (/dev/shm)
Thanks!
...
This should be easy, just curious. I know "httpd" is the HTTP daemon, just curious what the relationship is between "httpd" and "apachectl."
...
IronPort developed a stackless threading model that allows the IronPort appliance to support more than 10,000 simultaneous connections in contrast to the 100 connections supported on a traditional OS.
If one wanted to do the same but to make it open source, where should they start?
...
IronPort developed a high performance file system and an I/O driven scheduler optimized for the asynchronous nature of messaging (hence "Async"OS).
If you wanted to do the same but make it open source, what exactly would need to change?
...
I would like to write a cross-platform function in C++ that contains system calls. What conditional compilation flags can I check to determine which operating system the code is being compiled for? I'm interested mostly in Windows and Linux, using Visual Studio and GCC.
I think it should look something like this:
void SomeClass::SomeFu...
Is there a good development IDE for Groovy/Grails code completion under Linux?
...
I'm having some problems getting ncurses' getch() to block. Default operation seems to be non-blocking (or have I missed some initialization)? I would like it to work like getch() in Windows. I have tried various versions of
timeout(3000000);
nocbreak();
cbreak();
noraw();
etc...
(not all at the same time). I would prefer to not (expl...
I need to do a regex find and replace on all the files in a folder (and its subfolders). What would be the linux shell command to do that?
For example, I want to run this over all the files and overwrite the old file with the new, replaced text.
sed 's/old text/new text/g'
...
I am using /bin/tcsh as my default shell.
However, the tcsh style command os.system('setenv VAR val') doesn't work for me. But os.system('export VAR=val') works.
So my question is how can I know the os.system() run command under which shell?
...
I need to write some MAKEFILEs, but know nothing about them. Will someone please post some links to tutorials on how to create these wonderful files? I would like to study the basics of MAKEFILEs, from the beginning...
...
how can i know version of echo command
as specified in the man page for echo
echo --version should output version of echo command
is it a bug in echo command or its documentation..
plz explain..
same is the case with echo help!!
...
I feel somewhat dumb asking this, but I'm relatively new to linux (more in terms of experience than time), and one thing that i've always wondered is if I can 'rejoin' (my own term) a process while it's running.
For example, if I set a game server or eggdrop IRC bot to run in the background, is there a command I can use to view that pr...
I know, strange title....
this is my problem:
I have the cakephp stack in /var/www/site
from one view under controller A I do a jquery ajax call:
$("#searchstring").autocomplete("/items/getitemsforautocomplete", { ... more code
when the call is triggered I can see from firebug that cakephp wants to call:
http://localhost/items/g...
I want to tail multiple files (and follow them) in CentOS, I've tried this:
tail -f file1 file2 file3
but the output is very unfriendly
I've also had a look at multitail but can't find a CentOS version.
What other choices do I have?
...
I have a a directory with zip archives
the zip archives contain .jpg, .png, .gif images
I want to unzip each archive taking the images only and putting them in a folder with the name of the archive
so
files/archive1.zip
files/archive2.zip
files/archive3.zip
files/archive4.zip
open archive1.zip - take sunflower.jpg, rose_sun.gif...