I have a script that starts with #!/bin/csh -f and I'm trying to take a path passed in, do a whole bunch of stuff, move up one level and print that path. Instead of showing the path with the ...
On windows I use ShellExecute (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shellexecute.asp) to launch external programs.
I w...
I am making a custom lstohtml script and need to include the time, date and size of the files.
Example (section of the script):
for i in $*;
do
sizeTime=`ls -lh $i| cut -d" " -f ...
Is it possible to share a serial port (tty) with 2 linux applications? If so, what would the C++ code look like to open and configure this serial port (tty).
I am new to linux, but have do...
Hi,
I have multiple files of names I can specify, like
hello-today-0
hello-today-1
hello-today-2
hello-today-3
hello-today-4
hello-today-combined
I'd like to be able to have a sc...
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...
I have a process id, is it possible to determine the current directory that the process is in?
Hello experts, I am trying to go through a series of exercises to help me understand Linux running on a Live CD of Knoppix. Can you help with the commands I need to utilize?
2. Create a...
I want to catch the SIGINT signal without using the pause( ) call in
my program.Basically I should be able to catch a signal without having
to wait for the signal to occur. My signal handler...
hi people
I was trying to compile a code using some
user defined shared libraries.
the name of the library he has kept is as
---------------------------------------------------
g++...
Is there any way for a process running as a normal user (e.g. under suexec) to ask the user for an id and password and then validate it. It seems odd that Apache provides a way to run a scrip...
I have written a USB driver for a an i/o device copied from USB Skeleton..... it installs ok and can see it in lsmod and usbview
but now I want to write to the device using a C program.
I c...
Hi,
I tried to run up udhcpc with "udhcpc renew" and then, I tried to disable udhcpc with "udhcpc deconfig" ....Finally, after that, I ran up with udhcpc with "udhcpc renew" again....but ...
I have a log file that I need to monitor for certain events. I want the event I am looking for to be captured so I can modify the line and save to a new file. This will eventually run as a s...
Hi,
This is a very simple question. Consider I have a giant text file and I need to insert a character (an asterisk = *) to the beginning (first position) of each line of this file, moving...
$ ps vx | head -1 ; ps vx| egrep âÃÂÃÂv âÃÂÃÂidsldap | rootâÃÂà| grep âÃÂÃÂv PID |sort âÃÂÃÂrn +3 | head -10
PID TTY STAT TIME MAJFL TRS ...
Hi!
I am planning to conduct a training session on Linux internals. While it is best to come up with my own slides, just wanted to know if there are any slides available (even URLs to these...
Hi, experts:
I use the gSOAP toolkit to develop a web server program. The program can run on Ubuntu Linux. Now I would like to put this program into dd-wrt.v23_asus.trx firmware.
At first ,...
I'm looking for some assistance in setting up a crontab process to ftp 7 text files from a linux server to a windows 2k server. I've done very little work with linux on the command line. I kno...
I am using gvim. I need to get the exact steps to configuring gvim to reflect the different colors for syntax. this would include some configuration files.
Hi,
I tried all the ways to set the environment variable LD_LIBRARY_PATH from the Makefile but it's not getting set. Could you please tell me how to set the LD_LIBRARY_PATH from within the ...
When I boot a Mac(running OSX) with a live linux CD, I can mount the HFS+ partition. If I tar a folder then untar it to a different location, when I reboot into OSX, the resource fork data is ...
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
switch(argc)
{
case 2:
...
Hai all, i need to develop a program to get the title of the active window and if it contains some words that are not allowed in the lab session i need to close it.Thatz the question in a nuts...
HI,
This is a fairly basic to intermediate question. On Linux, is there a way to print which shared libraries were actually loaded by a program?
ldd analyses only the program binary to ...