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...
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:
...
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...
Wrote a script to pull all the various Interface IPs from a list of routers. Output from snmpwalk is in the following format:
ipAdEntIfIndex.192.168.100.106 = INTEGER: 10
Want to add a pi...
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...
I'm really new to cygwin,and linux.
I just installed cygwin (full install), and when I type gcc, I receive the following error:
"bash: gcc: command not found".
I searched gcc, but didn't fo...
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...
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...
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...
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...
Hi all,
all I want to do is to delete the string ') somestring' from
the string ' "a", "b", "c") somestring' using sed.
The count of the double quoted strings ist variable.
Cheers,
...
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...
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?
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 have years of experience writing DOS and Windows batch files, but I'm new to Linux, and am having trouble getting some bash shell commands to work with wildcards. Here is the pseudo code fo...
Hi
I have a program writting in c++ which has I compiled and it is
setting in a directory called myProg/str1/ the compiled file is called
proj.
I need to fire it up on starting xterm a...
Must transfer files from LINUX to MS/2003 server via FTP. Have been trying to get basic scripts to work however appear to be issues with MS server not accepting the ID and PASSWORD. Can manu...
To retrieve my own IP address on the network I use the grep command. $ /sbin/ifconfig eth0| grep 'inet addr:' However, I would like help/advice on how to write a small shell script that would...
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...
I have a bash script that I wrote. It works fine when I execute it from the shell. However, when I run the script via Cron it is not giving me the correct information. My curiosity is that ...
Hi
I built the attached code and ran it. I got run time error, "accept: Bad address".
Do you know why it is a bad address ? The ADDRESS was set to whatever it is from command ipconfig -a.
...
When I run a certain program it changes the font color of the terminal I'm starting it from. When the program exits it does not change the color back. Is there some way to reset or reload the ...
I would like to know how to overwrite an existing text file
as i wrote the script likethis ....>> /home/abc.txt.
However, the text file keeps appending texts without overwrite the exsting ...
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
I need to create a bash file with a few commands. What I'm trying to do is a web interface to copy a directory into another directory and vice versa (two hyperlinks).
One link I want it to ...