Advertisement

635 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested Linux Dev Solutions: 151 - 175 of 609
 
Hi Experts, I want Linux Script with following specifications. *Create Linux users.       usernames, passwords, home directories are in a seperate CSV (comma seperated file)configuration f...
Hi Experts, When I run gdb I am getting these errors. [New Cannot find thread 2049: invalid thread handle (gdb) next Couldn't get registers: No such process. (gdb) I traced the p...
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 have a few shell scripts written and working on an AIX system. They do not work on Linux. One pbm that I get is that an Unexpected End of File is happening when running such a script on ...
We link with a library that uses CFLAGS = -D _LARGEFILE64_SOURCE \          -D _FILE_OFFSET_BITS=64 Our application is compiled with -D _LARGEFILE64_SOURCE -D FILE_OFFSET_BITS=64 notice...
This is for a C++ program. I have a program where I fork and exec to create a child process then waitpid to wait for it to end.  Then I need to get the value the child process returned but ...
This questions pertains to closing a socket from a different thread while blocking on recvfrom(). It appears that the recvfrom() does not return when the socket is closed. I've looked around f...
Hi I would like to write a shell script that would move files matching the pattern *_t.* to another location, while keeping the directory structure from the original location. Can someo...
I'm beginer in bash programming. I want to write simple script to kill sprecific processes (name of the process I write as argument) every ten seconds. Here is my example: while true do  ...
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).
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...
Hi all. I'm making a bash script. I want it's output is printed to the console as well as to a file. How to do that ? Currently I do that plainly stupid like this --------------------...
I am writing a program make the function packet forwarding. I have a pc with two ether card A and B. I disabled ip forwarding. I use raw socket to capture packet from ether A, and then send...
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 use the 'ellemtel' C style when I write C or C++ programs. It seems to have all of the right stuff that fits my writing style. One thing it doesn't seem to have is automatically putting the ...
PHP Linux Hello, How do I copy a file to multiple directories (either through command line or through a PHP script)? For example... I want to copy a specific file, index.php in /...
Hello, I am trying to unzip all files that start with "MF" and end with ".zip" in a folder and have them extracted to another folder. They are password protected. Here is what I am trying: ...
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...
Dear expert, In a bash script, suppose we launch a background program. How can we get it's exit status. e.g #!/bin/bash ## launch the bg program tar -xjf A_VERY_BIG.TAR.BZ2 & PID1=...
I am trying to move a windows DLL to the RedHat Linux platform. There is a function called GetModuleName() in the current DLL file, what this funcation does is to get the application's name of...
Hi It is probably a well-know fact that JBoss can not start if you tell it to listen on port 80, because UNIX in general does not allow low port numbers. The solution seems to be to forward...
How do I write a multiple linked list to a binary file in C, assuming the filedescriptor is declared as fd = fopen("file.dat", "wb") ?
Hi guys! I need to modify the keyboard interrupt routine of the kernel to create a special command located at this level that shutdown the system. Well, resuming I need: 1 - Discover what...
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...
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...