Hi there,
I'm doing a large data migration between two file systems (let's call them F1 and F2) on a Linux system which will necessarily involve copying the data verbatim into a differently-structured hierarchy on F2 and changing the file names.
I'd like to write a script to generate a list of files which are in F1 but not in F2, i.e. t...
The pthread_cond_timedwait function needs an absolute time in a time timespec structure.
What time function I'm suppose to use to obtain the absolute time. I saw a lot of example on the web and I found almost all time function used. (ftime, clock, gettimeofday, clock_gettime (with all possible CLOCK_...).
The pthread_cond_timedwait use...
Where in Linux would you look to find out what registers are saved on a context switch? I'm wondering, for example, if it is safe to use FP or vector registers in kernel-mode driver code (mostly interested in x86-64 and ARM, but I'm hoping for an architecture-independent answer).
...
Hello all,
I am having a program which keeps track of other processes whether they are terminated or still running with respect to pid and I do this looking their pid directory in /proc.
But when a process goes in sleep, is it like its directory is gone becoz its being my watching process show it as terminated.
...
I've got an application running on Rails 2.3.5, on a Linux box, and I need to connect to Sql Server 2005 for one of my models.
I've been reading up on this, and it's getting frustrating, can't find a solution that works thus far. I've done this before using JRuby and JDBC, but I can't use Java in this scenario.
Any pointers to a failsa...
I am developing an application that will run on Linux to run fullscreen all the time (no menus or trays or anything will be visible).
The application is going to be developed in Python, not that that matters as far as the window manager, but what I am having a hard time with is choosing a window manager.
I need something with the small...
I am particularly interested how one can deal with a huge amount of information for a commercial service like Google Search or Google Maps. We all know they use (or "did" at least) a kind of Linux clusters, but how exactly are they organized? What kind of hardware do they use, what file systems, networking, what problems are the most fre...
Hi,
I am aware that this is not a direct 'development' question but I need that info to test a development project, so I think someone could've hit similar problem.
I will test a software that runs a TCP server and according to sent commands replies some answers. I will test the software and do not want to write code if it doesn't work ...
I was wondering how can I make the IO faster by writing and reading temporary files to main memory. I've used to write to /dev/shm in Linux.
But now I'm in Windows 7. Anyone knows the answer ?
Thanks
...
If there exist a directory,
/backup/
And the files in it are a.gz b.gz c.gz
And another directory /backup-directorybackup
And the files in it are a.gz
I need a shells script to compare two directories if the files are present then ignore it and if the filesare not present copy it to the destination directory
Thanks..
...
Hi all,
I need handle the SIGSEGV in my Linux app. The reason is some clean up(3-partry lib) must be done before generate core-dump. What is more, the clean up must be performed in the context of calling thread, cannot do in signal handler.
So I plan in signal handler to pass the control to the calling thread, after the clean up fini...
I am trying to optimise the boot-up time of linux on an embedded device (not PC)
Currently to profile the boot-up sequence,
I have enabled the timing info on printk logs.
Is this the most optimum way?
If not, how do i profile the boot-up sequence (with timing) with minimum overhead?
PS:
I have a terminal (of the device) over a serial-...
Are there any eclipse plugin available to auto generate sequence diagram for C++ code running in the linux environment? Please let me know the details. Thanks.
...
hi,
im doing a project as part of academic programme.Im doing this in linux platform.here i wanted to create a application which retrieve some information from some pdf files .for eg i have pdfs of subject2,subject1,in both the whole pdf is divided in to 4 modules and i want to get the data of module 1 from pdf..for this purpose my tuto...
Hi,
I have a script which uses killproc and procofpid commands and executes fine on a 64bit suse. But when I executed the script on 32bit redhat , I found that the above commands donot exist.
I don't have a 32bit Suse and 64bit redhat machines to test my script.
Is my guess right that on 64bit redhat the above commands should be avai...
So I am trying to compile the libssh2 library on linux, but when I try to compile the
example it comes up with a lot of errors, and even though I include the headerfile it asks for, it still asks for it.
Here are the error messages and the resulting messages:
~/ gcc -include /home/Roosevelt/libssh2-1.2.5/src/libssh2_config.h -o lolbais...
Hi,
Is there an authentication plugin for rails which uses the host system's /etc/passwd file to provide user/password information? The goal is to provide user login to a rails app for the same users who already have local login accounts to the linux machine hosting the rails app.
Cheers.
...
The application is a Firefox plugin (loaded from $HOME/.mozilla/plugins), so wrapper script that sets LD_LIBRARY_PATH is not an easy option.
RPATH, as far as I know, cannot refer to $HOME and can be only absolue path.
Firefox tries to dlopen it's plugin from ~/.mozilla/plugins but fails (because it depends on shared libraries installed...
Hi
I have a BIOS function I need to call from time to time on an embedded system, and using LRMI I was able to call it successfully from a user space program. Now I want to do the same from a loadable kernel module.
Is there any way to do this? Some other library maybe?
...
I'm doing something like this:
for f in `find -iname '*.html'`; do scp $f remoteserver:$f; done;
I've got through about 3 of the 1000 files and I've decided I want to abort the operation.
CTRL+C only escapes the SCP login prompt and takes me to the next one, rather than escaping the for loop.
Is there a better way than hitting CTRL+...