I have a need to create a uuid, but stuff it into no more than 35 characters
using
uuid_generate(id);
uuid_unparse(id,szId);
always generates 36 characters, but 4 are dashes
if the format...
Hi, I am new to linux and I am trying to compile a kernel modules, the problem I found is that Fedora 5 doesn't have a kernel source tree.
Can someone provide instructions please.
I tried...
Hi,
I have had an idea to write down everything someone does when they login. The way I thought to do it was by putting the following code into a .bash_profile. This is only for the root ...
right, i expect this will sound well dumb but here goes. how do i load software with '.tar' '.bin' or '.tar.gz' file extentions? ive had redhat 7.3 for a week and i still cant do it :'(, any h...
I am looking for a millisecond acurate sleep for linux
similar to
Irmx sysrtsleep()
I want to write a program for sending emails let's say once per day. The program has to run in background - like a demon. I could use screen and cron, but i want to create a program, that will...
Hi
In solaris/unix platform i've created a semaphore.h class which enables me to make simple use of Wait and Signal that i like rather than those other weird syntax. But i can't seem why this...
Hi Guru:
I have application. I would like to output the debug infomation on my console or any terminal or stdout. I can run the application to do this. I also can run a script which starts ...
Linux/Unix experts,
I have a directory that contains thousands of other directories. In each of those directories there are one or more files. Let's say that the files are of the form:
1...
*** QUESTIONS IS IN LINUX SECTION TOO BY ERROR! I APOLOGIZE , THIS APPLIES TO WINDOWS API ***
Dear Experts,
I'm struggling with a weird scenario, I'll try to explain everything, let's se...
what are semaphores
in waht way semaphore is different from mutex
puedocode for mutex implementation
Hi all,
I want to run an executable, say "A", and direct A's output to a file. So I have the following code:
A > file
Now A is running, and file is growing. Once A generates a line "ta...
In the good old days one used to be able to do a listing in /proc/<pid>/fd and see all the sockets in progress for a process and to/from which host and ports they are. Nowadays you only see so...
Hi!
I've just started working with xlib.
Can anyone tell me if there's any nonblocking equivalent to XNextEvent() ?
XCheckWindowEvent() and others are not what i really want.
I'm writing...
I need to make an application(running on LINUX) that is intended to work for USB cameras. The application needs to control the camera activities and must be able to set the various configurabl...
Hi folks,
I'd like to rename some special folders on my harddisk. All the folders are looking this way:
[PPP] - ( this text is variable ) - [PPP]
Now I want to exchange all the [PPP]...
Hi All Experts,
I am talking about a shell Script.
How do I know in which line number an error occured? In which line the script was when the error occured?
Do I have how to know this...
Hi Experts,
How can I copy a directory structure in Linux?
I am trying to backup linux with tar czvf to a windows share
mounted with mount -t smb
The backup stops at 2GB?
What am I doing wrong?
Hi,
can someone tell me how to rewrite text to the terminal, i.e. I want the new text to overwrite the old. This could be for reasons such as just flashing text, updating a number or doing A...
I am porting a Windows MFC app to linux.
It uses the PostMessage function to place a CString message "Message" in the Windows message queue as follows :
Window->PostMessage(Message);
...
Hello,
How can I make the buffer of a pipe bigger. I am having the problem that the write blocks if I write too much before starting to read from the read side of the pipe.
Thanks in adva...
My platform is Linux RH7.0
The below shell script is to execute our backend server program that written by java
****** start ******
#! /bin/sh
DISPLAY=localhost:0.0
export DISPLAY
CLAS...
Hi,
My development platform is Linux with gcc-3.2.2. My g++ compiler keep complaining about some of my c++ code is deprecated cause my code includes some old header files. I don not wish ...
Hi all.
I've been trying to compile some kernel related packages (libcap, progreiserfs, ...).
All failed with the same culprit, the source code use "_syscall2" macro.
This is from cap_sys...