linux

creating a substring on Linux IA-32 assembler (gas)

I wanna create a substring (ministring) of 3 asciz chars out of my original (thestring). The thing ain't printing when being run so I don't know what the hell I'm I doing. Why it ain't printing? Am I creating the ministring correctly? .section .data thestring: .asciz "111010101" ministring: .asciz "" formatd: .asciz "%d" formats:...

Debugging C++ lib with eclipse

Hi Guys, I am working on project in Linux which involves 1) Static Lib in C++ 2) GUI developed in C++/QT which uses static lib. Now both the lib and gui are build from command prompt using makefiles. I am trying to debug both like when I hit one button, call should go from GUI to lib. Is it possible to do like this in Linux with ecli...

How to restrict SSH users to a predefined set of commands after login?

This is a idea for a security. Our employees shall have access to some commands on a linux server but not all. They shall e.g. have the possibility to access a log file (less logfile) or start different commands (shutdown.sh / run.sh). Background information: All employees access the server with the same user name: Our product runs wit...

Window placement: WinSplit Revolution -like application for Linux (KDE)?

Hello Everyone, What is the WinSplit Revolution -like application for Linux (KDE)? Or maybe there is a functionality in KDE I am missing? Thanks and Happy New Year! ...

Comparing Unix/Linux IPC

Lots of IPCs are offered by unix/linux : Pipes/sockets/shared memory/dbus/message-queues. I would like to know what are the respective most suitable applications , e.g. what are the places where shared memory are preferred over message queue and vice versa. Also looking for data comparing their performances. Tried googling and st_over...

in ps -l, what does wchan=stext mean?

Hi! when I try to fine-tune my process, I see that the waiting channel is stext, what does it mean? thanks mehageg ...

On Linux SCHED_FIFO and SCHED_RR

I'm writing a a very small daemon that must remain responsive even when a system is under severe stress. I'm looking at the differences between SCHED_FIFO and SCHED_RR in regards to scheduling, as well as trying to determine a sensible priority. Which scheduler would be appropriate for a small but critical monitoring daemon, what priori...

Linux Write Something on multiple files

Hello, example: I have a file "atest.txt" that have some text.. I want to print this text at files "asdasd.txt asgfaya.txt asdjfusfdgh.txt asyeiuyhavujh.txt" This files is not exist on my server.. I'm running Debian.. What can i do? ...

What is the best way to check that external applications are available?

I have an application which had optional extras depending on if the user has the software installed. On Linux what is the best way to determine if something like python and PyUsb is installed? I am developing a C++ Qt application if that helps. ...

Linux file creation timestamp race conditions

I'm trying to do what I think is a simple thing under Linux. I have a bash script which runs various test programs, and I want to determine which files in the current directory were created by the test programs. So I am doing something like this: touch timestamp-file run the test find -newer timestamp-file -type f > list-of-files rm -f...

What editor/IDE do you use for C++ programming on linux and Why?

What editor/IDE do you use for C++ programming on linux and Why? SEE http://stackoverflow.com/questions/24109/c-ide-for-linux ...

What is the best folder distribution on Linux for user private folders?

In our site, users can have many private files. We are thinking what could be the best distribution so as to avoid destroying the server's performance, These files are served through Apache and should be listed each time the user needs to manage them. Our first approach right now is: var first_level = (int) $user_id/100; var files_fold...

Compare integer in bash, unary operator expected

The following code gives [: -ge: unary operator expected when i=0 if [ $i -ge 2 ] then #some code fi why? ...

Remove whitespace before a field using AWK

(Almost exact duplicate of http://stackoverflow.com/questions/408469/keeping-original-format-post-passing-through-awk submitted by same person.) I have a simple question pertaining to gawk, illustrated below: 1 int blah (void) 2 { 3 if (foo) { 4 printf ("blah\n"); 5 } 6 return ...

Why is PostgreSQL eating up all my precious HD space?

Hi again, I just finished transferring as much link-structure data concerning wikipedia (English) as I could. Basically, I downloaded a bunch of SQL dumps from wikipedia's latest dump repository. Since I am using PostgreSQL instead of MySQL, I decided to load all these dumps into my db using pipeline shell commands. Anyway, one of thes...

Renaming the trash command of trash-cli?

Hi, I'm the developer of the trash-cli project. The trash-cli project is a opensource implementation of the FreeDesktop.org Trash Specification that provides a command line interface to manage the trashcan. Ideally trash-cli provides these commands: trash (trashes files and directories) trash-empty (empty the trash...

How to implement web services on an embedded device?

We have an embedded device that needs to interact with an enterprise software system. The enterprise system currently uses many different mechanisms for communication between its components: ODBC, RPC, proprietary protocol over TCP/IP, and is moving to .Net-implmented web services. The embedded device runs a flavor of *nix, so we're ...

Why don't TKinter windows appear when using multiprocessing on Linux?

I want to spawn another process to display an error message asynchronously while the rest of the application continues. I'm using the multiprocessing module in Python 2.6 to create the process and I'm trying to display the window with TKinter. This code worked okay on Windows, but running it on Linux the TKinter window does not appear if...

Increasing the maximum number of tcp/ip connections in linux

Hi all, I'm not sure if this is an OS, router, or ISP question, but I believe it is an OS question. Question: How can I increase the number of connections my computer can use? I'm using ubuntu. I currently have a lot of connections for bit torrent, but I'm not able to make full use of my entire download bandwidth. My BT client is ...

Linux server account management

I am trying to help maintain a few dozen ubuntu servers and am looking for a way to maintain accounts on all the machines. I tried using likewise-open but but found it to be unstable. I would constantly have to login to a local account and rejoin it to the domain. Had it proved to be stable it would have been great for my needs. Ther...