Consider following makefile snippet:
#this is a makefile
...
RELATIVE_ROOT= ../../../..
include ${RELATIVE_ROOT}/ltools/makejar.inc
...
How can I get the absolute path of RELATIVE_RO...
I have a make file with a rule that takes all of the .o files and makes an executable.
The object files are stored in a directory under the directory where the make file is stored ie linuxd...
Hi,
I've the problem with my shell script:
--------------
search_word=SEARCH
replace_word=REPLACE
sed 's/$search_word/$replace_word/g' testfile
-------------
cat testfile
SEARCH
...
Hello one of my application that I have installed requires teh XML::Xerces module .I downloaded the module form the cpan org
http://cpan.uwinnipeg.ca/module/XML%3A%3AXerces
and followed ...
I have a text file that I read for a number
Sometimes the number can be 1 decimal place other times it can have up to 3. It's a temperature reading. so 29.765 or 55.5 or 99.32
In bash, ...
I have a shell script that I need to be sure runs when my server starts up. My thought was to write a little init.d script that would just launch the script. It seems to work OK, but I was j...
How can i create in bash a random string of 80 characters like nAHSU987ASNnnn9sdnasus9dha87ajdJNo7988
hi all,
I have a client that want to make unicode text coming from data base converted to image the text is in arabic and the application is for publish (news paper stuff) so the letter have ...
In a bash script I am trying to save the result of
grep -c "mtftp[[:blank:]]*1759/tcp[[:blank:]]*[#]*" /etc/services
So far, I have tried
result="$?" and result=$?
witch
echo $resu...
once a file is filp_open ed how do you read/write to it?
I need to extract ip addresses from an unformatted text file. The addresses do not have brackets or any other delimiters around them. I need to output this to another file.
I am trying to understand how Linux kernel differentiates between virtual address space of kernel and virtual address space of user space process for Intel CPU architecture .
Linux KERNEL loa...
Hi,
I am using a cross compiler/linker and make complians that it cannot find lstdc++ i have:
/usr/lib/lstdc++.so
/usr/local/arm-apple-darwin/lib/lstdc++
/usr/local/arm-apple-darwin/li...
hi!
I am trying to do a lookup method by using a vector this is what i have done
typedef std::pair<std::string, int> pair_t;
typedef std::string HostName;
typedef unsign...
Hello I am using Centos 5.2, I need certain software packages to compile a program, Centos 5.2 uses Yum, and I need the software package 'pcre' which is installed both reg and dev versions, bu...
Hi all,
Can I use message queues to communicate between the user space and kernel space.
My problem is that there is a situation where
the events will be generated in a kernel module a...
I need to get a list of the NEXT level of directories only. It needs to end up in a makefile variable. I am open to how it gets there though. It could come from the shell, commnd line or make ...
I have zero experience in linux. Anyway,
1) How my windows program can connect to a linux PC and vice versa which both of them is inside the same network?
2) After connected, my windows ...
Hi Experts,
How can I copy a directory structure in Linux?
I'm trying to find a reasonable representation of "available" memory. "Free" memory isn't very accurate, as Linux is good at putting otherwise unused RAM to good use if it's otherwise idle.
...
Experts,
I have a while loop that does some work on a number of cmd line parameters in sucession.
creates an array within the while loop.
based on the array created I want to exclude th...
Can someone help me with writing a script to restart a process running out of the inittab.
Any links or suggestions would be great.
Thank you.
I am accessing my newly build Debian system from Windows 2000 using Putty. I have CygwinX running on the Windows 2000 client. when I run firefox& in the ssh, I get a
Gtk-WARNING **: cannot o...
Hi,
I have a program in which I'm spawning of 3 child processes. The main associates a signal handler (Sigterm and Sigint) and than spawns 3 threads. After this main calls pthread_join to w...
I am writing a mini shell, but I am having trouble with input/ output redirection when it comes to reading the input from one file, execute a command on that input and then redirect the output...