Dear,
Does someone knows how to alter the hardware time under linux, from C(++) ?
I use the stime function, but this seems to change only the time of the operating system, without changi...
I'm trying to optimize my program for speed. in the past I have compile and linked my program using g++ with the -pg tag to instrument the code for profiling. The run of the executable generat...
I'm using BSD. I want to grep on multiple items. For example I want to find all lines with aaa, bbb or ccc. Does anyone know they syntax?
Hi,
In some section of code that involve characters I/O on Linux, I used (I simplified the function for the convenience of the question)
//-----------
#include <curses.h>
char getCha...
Hi,
Can i get a free snmp client for Linux,through which
i can access my embedded boxes and My private MIBS.
If so, where can i get and all other neccessary things..
And also i want ...
Hello,
I am trying to build a shared library. This library in turn makes a call to static library provided by the Operating system. Please let me know how do i link this static librar...
#!/bin/ksh
echo "OK">"$6".OK
I have a simple Korn shell script as follows:
#!/bin/ksh
echo "OK">"$1".OK
where $1 is the parameter passed in. The parameter is something like abc.tx...
How can we get the ip address like ifconfig using C program?
The question is not the same as what I asked.
The Ip I got was not same as the ifconfig.
I beleive that using ifconfig can get t...
Can anybody tell me how to capture keyboard strokes like ESCAPE, CTRL etc in linux?
Thanks
-Anu
Hi,
I am editing a file in vim, which looks like this:
<link href="Style.css" rel="styleSheet" type="text/css">
<td colsp...
Hi experts,
I have a job on Linux that I want it to run every 20 minutes. I know that the crontab syntax is "* * * * * command to be executed", however I do not know how to set...
Hi I'm using pthreads. I've have not been able to find a examples showing how to schedule thread execution based on time. For example if i want a thread to run every 100ms. Can anyone point me...
I write a programmer, what i want is :
1. read threads(getdata() and printdata()) can run concurrent when there is no thread deldata or adddata.
2. there is only one modify thread running...
Hi,
I am a newbee in Redhat Linux.I want to develop a serial
communication program for Linux in C.In one port i am getting data
(say in COM2) .How can i do interrupt driven programming in ...
Hi all,
I had a program compile in redhat9 kernel 2.4.20. But my current linux machine is redhat7.1 with kernel 2.4.9. I get errror message as below when i try to run the prgram in the mach...
Please could someone help me install Beryl on Kubuntu or tell me where I can find a guide?
I'm looking for a step by step guide.
Jake
Experts
I need to rename a log file to log.YYYY_SEQ on the first day of each year or when the size reaches 1GB. Obviously the "YYYY" means the current year. And "SEQ" equals the log count....
Hi,
This should be simple, but I can't seem to make it work. I just want to assign todays date (in any format) to a variable in a bash script.
Can someone please tell me how this is don...
I am calling a socket library call
setsockopt:
struct ip_mreq m ;
//filling out m and calling
setsockopt(multi_fd , IPPROTO_IP , IP_ADD_MEMBERSHIP , &m , sizeof(m) );
But this is giv...
Im trying to use sendto to send a UDP packet in my program. When I try, sendto fails and perror() says "Permission denied". What is causing this?
I have a server which I am told is missing something called libstdc++-libc6.2-2.so.3 but I have no idea how to install it. I have SSH root access to the server but no idea what to type line by...
I am trying to use Unison to backup a directory on a Linux server to an external USB hard drive on a daily basis. Following is the script I am using in the cron.daily folder. This executes f...
I am trying to convert an app from Win32 to Linux. In so doing I need to emulate the behavior of Win32 threads which allow you to suspend a thread, and resume a thread (these threads can be t...
Hi,
I'm writing a shell script in which I'm trying to delete everything before the LAST slash, AND the slash itself in a file path,
leaving only the filename visible.
Anyone would know ho...
hi this is rajesh,
the following code is the dining philosophers problem.For that problem I want
answer for the following questions and I want to know why the de...