linux

How to launch a process on Linux with highly restricted privileges?

Hi everyone. I'd like to (from code) launch a process with highly restricted privileges. Can save files, but only in its own folder and limited to a quota. Can use memory, within a quota. CPU time (including any subprocesses it launches) is limited to a quota. Can't talk with any other process except it's own and the interface to my c...

How do I open gnome-terminal with new enviroment variables?

I have a file that sets enviroment variables(JAVA_HOME, ANT_HOME...) I use for doing java programming related tasks. WHen I want to setup the new environment I type "source devenv" (devenv being the file that contains the new environment setup). I'm trying to create a shortcut that opens the gnome-terminal and automatically sets those va...

using JNI libraries in ubuntu

Im am trying to use a JNI library but unable to locate where the .so files are on my ubuntu machine? The reason I need to find it is because I suspect Im using an older version and like to replace it with a newer one. Its more of an ubuntu question rather than jni. Any help is appreciated. ...

Linux equivalent of Windows Device Manager / DevCon utility?

Hello, I was wondering if there is any Linux equivalent to Windows Device Manager, or the Windows DevCon utility (a command line utility with hardware management functionality). Do drivers even work the same way in Linux? Thanks! R ...

Output of last shell command

In a linux shell, is it possible to return the output of the last command. I realize I could have piped it or sent the output to a file, but my requirement is to retrieve that output after the command has been run. Using csh, but would hear about any shell. Edit For some context: Not until midway through a 3 hour build script, I'll re...

Compare two websites and see if they are "equal?"

We are migrating web servers, and it would be nice to have an automated way to check some of the basic site structure to see if the rendered pages are the same on the new server as the old server. I was just wondering if anyone knew of anything to assist in this task? ...

Serving files from linux share on IIS 6.0

dHi, I'm trying to setup my IIS server (6.0) to serve files from a linux share. As I'm pretty unfamiliar with linux I ask the community for any input on this. I've had problems even having IIS server serve content from another windows machine share, this could be a prolem with our domain. The iis server is not on the domain. As I wa...

call shell command inside of a flash file

Hi! I want to create a basic GUI for a touchscreen panel running linux grml with fluxbox so I'm very restricted. The Gnash player is also available. Is there a way to call shell/bash commands inside a Flash file (swf)? I want to create a GUI to control the mplayer and volume with the touchscreen... If it's not possible with Flash, what ...

TCP connection - delayed close() and RST

Hi, I have both TCP client and TCP server run on RHEL 5.3 on different machines. I'm killing server and FIN is sent to the client. ACK is sent back by client's OS back immediately. Client discovers the close (by read() returning zero) and perfroms close only after 90 sec. At this stage I verified netstat on both sides and it's as expe...

Are there any C APIs to extract the base file name from its full path in Linux?

I guess the title says it all. Given the full path, the API should give me the base file name. E.g., "/foo/bar.txt" --> "bar.txt". ...

How to get use count from Linux kernel module?

I have a problem with use count of kernel module being developed.I'd like to print it for debugging purpose. How can I obtain it from the module code? Kernel version in question - Linux 2.6.32 ...

Should I learn Python or Java to develop GUI apps for Ubuntu?

I'm a long-time Mac user making the switch to Ubuntu. I have programming experience in Objective-C and REALbasic. I want to develop native looking applications that will look pretty in the Gnome environment that Ubuntu uses. Three questions: What would fit better for me - Java or Python (I'm happy to learn something else if it is a b...

validating X.509 certificate on linux

I have just started working with X.509 certificates. Can any one tell me how to go about validating a certificate on linux? The use case is that my app had downloaded a certificate in a previous session and I have to check if it is still valid (i.e., not expired or revoked since it was stored) before starting a new session. I understand ...

Good apps I could use to store a page locally?

Hi folks, I really need to find a reliable way in order to store a web page locally, with all it's dependencies e.g. html, css stylesheets, javascript, etc... A python library would be awesome, a CLI would be great too. Also would this type of app/library have a standardized name? Any suggestions guys? =) ...

Timer Interrupt for pthreads

How can I implement timer interrupt using pthreads? ...

vimrc to be cross-plataform and synced with Dropbox.

I'v been using vim/gVim so far in my Linux Machine, and I have a Windows machine as well. In this windows machine I'm mainly notepad++. I would like to store all my .vimrc settings and .vim folder in Dropbox, and create symbolic links in Linux pointing to them, and them do the same in my Windows machine. I have plenty of "home shortcut...

can we write program to get password of linux user

can we write a program in java to get usernames and passwords ...

How to list threads opened by every application in Linux?

Is there a way to know, at a real time, what threads are opened and what application opened them? ...

find process that's generating CAL interrupts (syscalls)

I have a peak of CAL type interrupts, 20,000 per second. How do I find the process that's generating them on SUSE11? Thanks! ...

failed export of LD_LIBRARY_PATH with xerces and xml addon in firefox

I have installed: xerces-c_2_8_0-x86-linux-gcc_3_4.tar.gz on my SLED_11 (SuSE linux Enterprise) The site: https://addons.mozilla.org/en-US/firefox/addon/4522/ ask me to export this PATH: export LD_LIBRARY_PATH=/home/sigbj/xerces-c_2_8_0-x86-linux-gcc_3_4/lib/:$LD_LIBRARY_PATH Then to install the addon for xml above. The firefox retur...