linux

Linux folder permissions

At my office, we have a network directory structure like this: /jobs/2004/3999-job_name/... /jobs/2004/4000-job_name/... The issue is that employees rename the "4000-job_name" folders (which in turn breaks other things that rely on the name being consistent with a database). How can I stop users from renaming the parent folder while ...

How to embed flash in Mono?

Is it possible to embed flash in a mono Application? Preferably would be similar to the way it can be embedded as an ActiveX control in .Net, but anything where somehow the flash commands could bubble up to the Mono application would be fine. I had assumed that it would be possible to use the web browser to see flash, however I canno...

Global Keyboard Hook in Linux?

How to write global keyboard hook in Ubuntu (Linux) (like Hook for Windows) In C/C++ or Python ...

What server-side web technology should I use in an embedded system?

Hey guys and gals, I'm starting a new project and I'm trying to figure out what technologies I should use. Here's the deal, I'm writing some software that will run on a wireless router and I would like to provide a web interface. So most likely I will have to do some server-side web development. The only issue is that the device I will ...

A question about command "find"

find . \( -name "_*" -or -newer while2 \) -type f -print In the linux command above , why _* should be quoted ? ...

How to run a bash script from C++ program

Bash scripts are very useful and can save a lot of programming time. So how do you start a bash script in a C++ program? Also if you know how to make user become the super-user that would be nice also. Thanks! ...

C: Run a System Command and Get Output?

hi, i want to run a command in linux, and get the text returned of what it outputs...but i DO NOT want this text printed to screen. There has to be a more elegant way than making a temporary file right? Duplicate of http://stackoverflow.com/questions/43116/how-can-i-run-an-external-program-from-c-and-parse-its-output ...

Shell script - Two for loops and changing extension of file

Hello all, I have this Shell script and I've managed to muck it up and I was hoping I could be corrected and put on the right path and hopefully add a few things that I am not competent enough to do myself. I have put what I want do as comments in the Shell script below. #!/bin/bash #Get all files from dir "videos" and send to processL...

Why does this bash script require me to press enter to continue?

Hello all, I was kindly helped a few minutes ago by a user named Juliano and the script works fine but it just baffles me why it continues to work when I press enter, if I don't it just sits there untill I have to keep pressing enter. I thought that was the job of the for loop? #!/bin/bash TIMEFORMAT=%6R for file in /home/t...

Is it wise to use PHP for a daemon?

Hello all, I wish to create a background process and I have been told these are usually written in C or something of that sort. I have recently found out PHP can be used to create a daemon and I was hoping to get some advice if I should make use of PHP in this way. Here are my requirements for a daemon. Continuously check if a row ha...

Cannot connect to X server :0.0 with a QT application

Hello, Compiling on Fedora 10. I have just started my first qt GUI application. I used all the default settings. Its just a simple form. It builds OK without any errors. But when I try and run the application. I get the following message: Starting /home/rob/projects/qt/test1/test1/test1... No protocol specified test1: cannot connect ...

Direct Memory Access in Linux

I'm trying to access physical memory directly for an embedded Linux project, but I'm not sure how I can best designate memory for my use. If I boot my device regularly, and access /dev/mem, I can easily read and write to just about anywhere I want. However, in this, I'm accessing memory that can easily be allocated to any process; which...

Recovering formatted partition

I accidentally hit 'format' in qtparted on my ext3 partition (for Ubuntu), which I was analyzing via another computer. The list of four messages it gives during the format process include "writing inode table" and "writing filesystem", or something similar. How can I view this data? The tools I've looked at appear to either require inta...

how to send a signal to webpage

Our project platform is Linux. In our project we require a webserver and few webpages. We have to do webpage coding by .cgi files, i have to add dynamically some details to the webpage whenever i gets that information from other process. We have used message queue. The other process will update the message queue and signals this proce...

How to change focus in X-Windows?

I am working on old Motif-based application for Linux. I want to be able to programmatically change the active window of our application. I can redirect the input by using XSetInputFocus() function and the keyboard input start to go there, but XReconfigureWMWindow() and XRaiseWindow() functions just don't work. I've read that Window Ma...

java eclipse-plugin : menuitems appear in windows but not on linux

I am extending the tools menu with my own action cmds using the below line in the plugin.xml ... <extension point="org.eclipse.ui.menus"> <menuContribution locationURI="menu:org.eclipse.ui.main.menu?after=edit"> <menu id="geditorToolsMenu" label="T&amp;ools" ...

Connecting to a Linux-based server over a modem

I have a black-box device with a modem attached (which I can send commands to), and would like to be able to connect to send data to a server from it. What connectivity options do I have, is PPP the protocol I need to use or is there a better option? ...

opening a .tar.gz file with a single command

when I download a .tar.gz file, I open it with two commands, first gunzip and then tar. Is it possible to open it with just one command? ...

What is the best way to store usage reports over time?

Hello, I currently have a few server reports that return usage statistics whenever run. The data is collected from several different sources (mostly log files), so they're not in a database to begin with. The returned data are simple lists, for example, detailing how much disk space a user is using (user => space) average percent memor...

Checkpoint NG VPN client for linux

Is there a working solution for connecting a Linux client to a Checkpoint NG VPN server ? ...