linux

stat.h unavailable in Linux?

When I do #include <stat.h> in Linux, I get a compiler error. I need this library for the S_IWRITE flag, which in its turn is used in the context of system-level IO. Is stat.h unavailable in Linux? ...

Create/Write Permissions in MySQL

I am experiencing some permission problems with my SELECT ... INTO OUTFILE statement. When I log into my database and do a simple export command, eg: mysql> select * from XYZ into outfile '/home/mropa/Photos/Desktop/TEST.txt'; I get the respond: ERROR 1 (HY000): Can't create/write to file '/home/mropa/Photos/Desktop/TEST.txt' (Err...

Is there a good source of programming tests we can give candidates at interview?

Particularly for PHP and Linux server admin. ...

ASP.NET Model View Controller Application on DreamHost PS

Hello everyone :) I have an account with the excellent DreamHost web service. I also have a P.S. which means I should be able to modify essentially anything I want on the server. I'd like to create an ASP.NET MVC application, and I'd like to be able to run this from DH. The problem though is that DH provides Linux servers only. Is this...

how to automate timed running of 2 programs ?

I'm working in linux. I have two programs that run for infinite time ( that is , wont stop unless i kill the process ).i want to run program 1 first and then run program 2 after 20 seconds ( both will have to run simultaneously as one reads a file written by the other ).Currently , i am running the 2 programs by manually keeping track of...

Explain void (*signal(int signo, void *(func)(int)))(int)

Please explain this type signature. ...

unzip folder in ubuntu linux

how do i uninstall a zip file? ...

Searching for memory leaks in Apache httpd and modules

What is the best way for finding memory leaks in Apache httpd and httpd modules? Are there any howtos? I'v tried valgrind a little, but few obstacles appeared: Valgrind expects for binary to exit normally. I have managed to do that with MaxRequestsPerChild and -X parameter. Valgrind reports about lots of stuff, probably connected wit...

htaccess rewrite rule doesn't work

Hi, in my .htaccess file i do have these lines: Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([a-zA-Z0-9_-]+)/([0-9])/([a-zA-Z0-9_-]+)\.(html)$ /first_gate/index.php?show=true&_=$1&__=$2 [QSA] So calling: http://www.domain.com/a-b-c-d/123/an-thing-here.html in the background it's intend...

I want to run a Linux based device application without hardware

Hi all, Is there any simulation environment that allows to run and test Linux based USB device application on host machine running Linux? Also same thing for Linux based USB host side applications where one can run and test Linux based host applications with physical/virtual USB devices. Regards, Mooni ...

php mail stopped working for some addresses on debian

My Debian Lenny server was happily sending mails from the php mail() function up until a few days ago. Now, it will return false for certain email addresses I have been using. I pointed php to sendmail in php.ini but that didn't change much. I noticed when I run: sudo /usr/sbin/sendmail -bv [email protected] I get the message: my...

Is is posible too run a mysql-cluster management node on a different OS?

Is it posible too run the Management node of the mysql-cluster on a different OS ( linux ) and 2-3 cluster servers on windows hosts? ...

Building linux application through Vmware

Hello, I used to develop using Visual Studio on windows... (C++) we recently migrated our app to linux (red-hat) , and currently each employee is building his own app is his own virtual machine using Vmware. out native OS is still Windows. At first, it seemed that building using g++ was faster then using VS compiler, however, after so...

Best C++ Linux IDE

Possible Duplicate: Best unix/linux C++ debuger/IDE ? Hey, I've been searcing and reading about a good Linux C++ IDE, and couldn't set my mind on the right one. I've been using Eclipse with the C++ pluging , for C development, for the last couple months, but I found it not very useful, especially the debugging process that ...

Storing non-user specific application data on Mac & Linux - Permissions

I posted this question a while ago regarding where to store non-user specific application data on Linux. As you can see, I intended to use "/Library/Application Support” on Mac and perhaps "/var/lib" or "/usr/share" on Linux. On an existing application (currently Windows only) we use “\ProgramData” on Vista & Windows 7 and “\Documents ...

Find the files related to a software

Hello Friends, I have one doubt. I am doing a project related to system restore concept in Linux. There i am planning to perform application wise rollback in case of failure. Is there any way to figure out what are all the files used by an application in the system? Ok. I will make it a little clear. For instance consider the firefox ap...

Unmeasurable CPU usage?

Hi Chaps, Im trying to monitor the CPU usage of a process I've been updating to do a bit more work. However reading the /proc/pid/stat file, the jiffie counts (of utime,stime, etc) of the process will not increase. (It is definately doing some work, I can see it with strace etc). The amount of work the process is doing is relatively ti...

linux/timer.h setup_timer() expiration function not working?

So the TimerExpire function in my setup_timer() causes a huge panic (will post below), while the regular function call to TimerExpire() will actually print out my input. void TimerExpire(char* data) { printk("Timer Data: %s\n", data); } setup_timer(&my_timer, TimerExpire, (char *)args); printk("Made timer: %s\n", (char *)args); Tim...

How can I list the minimal set of Debian packages needed to recreate a set of installed packages?

Is there a way of getting dpkg, apt-get or aptitude to produce a list of the packages which need to be installed on a second machine to duplicate the packages installed on a first? i.e. If I've installed a plain Ubuntu server, chose the sshd option at install time, then installed build-essential I would expect the output to look somethi...

How to restrict a user to access only specific folders

Hi, I have an Ubuntu server installed and I need to give access to my client's sites hosted on my server. There are currently 2 sites, which means 2 folders. I was able to create a user with the command: adduser user However, I cannot find a way how to restrict this user to view only specific folders. If you tell me at least how to ...