Hello,
Can somebody tell me if there's a readymade ( portable on all linuxes if possible ) tool which mimics ndd like behaviour ?
I specifically want to set the Timeout params for a sock...
Hello!
I need to handle stack overflow in Linux from programs written in C/C++. I've surprisingly found that it's not not easy... In Windows 2000 I'm using structured exception handling for...
I am trying to write a script that will tar files by date. My system is set up to archive certain files into a directory named with the date of the archive. For example: /data/archive/08-08-...
I'm trying to port an app from windows to linux, but I need a way to get the number of miliseconds since the system started. In windows this is the GetTickCount() function. I thought Linux d...
Hi,
I wish to set a Linux environment variable from within GNU C/C++.
I've tried "system("var=hello"); but this doesnt work - the variable seems to disappear when I check it in a shell s...
I'm running MythBuntu and I'm having no success getting the optical audio to work.
I can verify the hardware is all fine because it works in XP. In linux, I can get analog out from the stereo...
Setup:
Serial connection to Linux OS.
Reading IP packets being sent across serial connection
I am trying to take a DHCP IP packet sent from the serial connection and send it to regular et...
I'd like to have a PHP script run as a daemon on a Debian server. With little knowledge of shell scripting it's difficult for me to edit the /etc/init.d/skeleton file to make this happen corre...
# Goal
- Access Serial Port on a Linux (Ubuntu 9.4) machine with Php.
- The serial device is an usb serial converter chip "ft232r".
- The Receiver must always be online, because the timepo...
Hi,
Can somebody give me example programs on how to use the Read and Write system call in the Linux Kernel. Also could you help me out with links on where I can find good tutorials for th...
Hi expert, please help.
If I launch a bash script in a chroot environment that need
/proc file system, how can we accomplish that.
This is what I have, but not so good
----------------...
On Linux, in my program I got a string e.g. "614748364856" which can not be fit in int type if I use atoi function.
I need to declare an 64 bit integer and use something like atoi64( ) to get...
Hello all,
I want to write a small shell script for Linux red-hat 3.0 that will automatically monitor the CPU usage and memory.
My plan is to put the script in a cron and write to a file...
Can somebody help me get some code to implement pthread_suspend and pthread_continue for a multi-threaded program. The compiler I'm using is:
gcc version egcs-2.91.66 19990314/Linux (egcs-1...
HI !!
I would like to send a raw packet over the network -
Below is the code I have written -
When I do a strace - I see that the sendto call is sending to if0 for some reason - MY Lan ...
I need to calculate the execution time of a C++ code segment. On solaris I could do this by using hrtime (high resolution timer) and by starting and stopping the timer before and after the par...
Hello all,
I'm trying to write a script to wget files in a url list then when done echo the successful downloads / total downloads attempted. Any ideas on this?
I have a table in LaTeX (actually pdflatex) that I want to make fit on a single page. The problem is that the text in the columns are dynamic (i.e. from the user).
I need to be able to dyna...
Is there any system calls which can be used to get CPU usage of the entire system?
Thanks.
Hi!
I am looking for an way to handle in c++ and linux timers like in java (timer.schedule) or in Win32/MFC (SetTimer) with a callback after elapsed time. What about support of multiple call...
What is the difference between bash, tcsh, and others. How do you know when to use what?
and when I do a "man", how do I specify which one it is for. How do I list all the "man" pages for...
I'm writing a simple Client program in C using sockets to transfer a file from a server also written in C which is running ( and tested correctly). The problem is, I'm able to transfer text or...
Basically we have a read thread that does the following:
for ( bool done = false ; !done ; ) {
//
// Under normal conditions this loop should have a read action
...
how to check or make LAN card act as a promiscuous mode?
This is probably a simple thing that I just can get. I have a script that has several functions within it; each are components. When the user runs the script, they specify which component th...