Time for your 3rd Quarter Update! Are you in the running for the 6th Annual Expert Awards? Click the link to find out.

Third Quarter Hot Shots
 

Having problems asking a question? Have a general question about Experts Exchange? Let us know!

 
Time Tested Linux Dev Solutions: 76 - 100 of 748
 
Hi, Red Hat Linux, in Bash I'm looking for a way for a Bash script to run a short multi-line SED script originating from a HEREDOC following the SED command line. Is there a way to re...
hi, i'm trying to send and recieve string with  client/server aplicattions. Client steps:                                Server steps: 1- send string                                    ...
This is driving me mad. I know there's going to be a simple solution that I'll smack myself in the head for once I see it! I have a directory containing full backups ("full"). I have anothe...
I have a script to check the mail box size of people ########## #!/bin/bash ####Provide the mail size in kilobytes######## let size=1600 for name in `find /var/spool/mail/ -size +${size...
Hello, I need to implement a function in C to calculate the total cpu usage in percentage (%) But I need I fast fast function that can be called at least from every 0.5 sec and use no threads...
Write a C program using the fork() system call that that generates the Fibonacci sequence in the child process. The number of the sequence will be provided in the command line. For example, if...
If I have a makefile rule like: myprog.o : myprog.cpp     g++ -g -Wall -c myprog.cpp Why does make say: "make:  *** No rule to make target `myprog.cpp', needed by `myprog.o'.  Stop." ...
Greetings I'm doing alot of work with DHCP and IPTables right now. Because I frequently need to restart my network adapters, I've written this script But, the problem is, it just does the i...
I have the following latex code; \parbox{\textwidth}{%   \parbox[b]{.42\textwidth}{%     <%company%>     <%address%>   }   \parbox[b]{.2\textwidth}{     \includegraphics[scale=0.2]{...
I'm writing a VERY simple script to kill & restart MRTG every night so it will recognize new router interfaces. (The restarting is not a problem) Here it is: #! /bin/bash PIDFILE=mrtg.p...
How can I easily extract the substring before a specific character in Linux (bash, sed or awk ...) ? Ex 81.215.200.25:4445 becomes 81.215.200.25 (: and the rest of the string are not extracted).
Hi, Can anyone show me how to use Valgrind to debug Qt's application memory leak. Can you show me in details on one of these example (http://doc.trolltech.com/3.2/examples.html) how to c...
Hello experts, I have a really urgent question. I'm doing a system programming for my os class. When I use shmget function, I get an error saying invalid argument....I don't understand. Can...
I'm working on a visual program, that may need to run a tar command as root, to extract files. I've been scouring the web trying to find a way to run a shell program that will su to root, pas...
On Windows platform, functions CreateEvent(), SetEvent(), or WaitForSingleObject() are used for thread synchronization. On Linux platform, what are functions for thread/process synchronization...
When I press SHIFT+F1 the same escape codes are sent Linux as when I press the F11 key: (ESC[23~) I am running: - PuTTY release 0.58 - PuTTY Configuration / Terminal / Keyboard settings: ...
Hi, In HP-UX, you can get a list of active processes and their relevant information by calling pstat_getproc(). How can this be achieved in linux using c/c++? I.e. how can i get a list of cur...
I need to set the display variables in a C program, using setenv or putenv. which is a better function to set environment display variables?  Please suggest the code. This is meant for a pr...
Dear experts. A simple question. How can we get the pid os a process that is just launched by a bash script for example: myprogram bla bla bla pid = ???? echo PID = $pid ... ... ...
I'm running a server which continuously receives data over a network, processes the data, and stores the processed data in a large database.  The database consists of multiple files which ar...
Hi, I'm trying to run Eclipse Process Framework headless on SLES 10 Linux. This fails with a message Exception in thread "Thread-2" org.eclipse.swt.SWTError: No more handles [gtk_init_check()...
I have an appliication that needs to be constantly running. At the moment I start the application by running it from the command line and occassionaly it will, for some reason, stop running an...
Hello Can somebody give me a simple example on sending and receving a UDP broadcast message? I am using C and Linux.
How I can create a folder name like current date. Eg: 01012004. On using shell script. I am not familiar with shell script. Pls help.
Hi, Can someone give me example how to send gratuitous arp from linux.