I'm trying to execute firefox on a headless server to take screen shots of a website. I can do this fine from the terminal using
"DISPLAY=:12 firefox -saveimage http://www.google.com/".
The problem is when I try to do system("DISPLAY=:12 firefox -saveimage http://www.google.com"); doesn't work. I have a feeling that it's not executin...
Has anyone an idea how many tcp-socket connections are possible on a modern standard root server? (There is in general less traffic on each connection, but all the connections have to be up all the time.)
EDIT: We will use a Linux Server.
...
I'm trying to use rsync to backup windows servers to an rsync server. I'm having problems with rsync on the linux side though, it doesn't like symlinks.
Currently I'm trying to use the module path of ~/backup, but rsync says that the chroot failed. I looked up what to do and saw that I needed to add the option use chroot = no and munge ...
I've accidentally attached to a 2nd GNU screen session from within an existing screen session and cannot detach or issue commands to the inner screen. I remember figuring out how to do that before but completely forgot and would like to keep it as reference.
One way is to detach the inner screen by doing screen -dr from shell, but what ...
what's your XML viewer of choice from within KDE? Something that formats the XML decently. I've searched around but have not found anything reasonable.
...
What if I want to run native Unix-like applications on Windows? What's the best application out there?
...
Hi,
I have a disk drive where the inode usage is 100% (using df -i command).
However after deleting files substantially, the usage remain 100%.
What's the correct way to do it then?
How is it possible that a disk drive with less disk space usage can have
higher Inode usage than disk drive with higher disk space usage?
...
I have made a Linux CUI app that communicates between processes via Message-quene.
There is no problem with it as long as it is a single instance. However when there are multiple instances of the same app, the messages in the quene get sent to the wrong instance.
I understand this can be avoided by giving the msgget function a unique k...
Hi,
I'm writing a bash script to add simple firewalling for Xen.
Here's the actual firewall configuration :
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH...
What is the difference between these two file types. I see that my C++ app links against both types during the construction of the executable.
How to build .a files? links, references, and especially examples, are highly appreciated.
...
I have a third-party library which consists mainly of a large number of static (.a) library files. I can compile this into a single .a library file, but I really need it to be a single .so shared library file.
Is there any way to convert a static .a file into a shared .so file? Or more generally is there a good way to combine a huge n...
I have the following
VM with CentOS 5 running on vista 64. I have my DNS set in my resolv.conf (servers resolve on my windows machine and I have tried various servers). I can ping the DNS but it wont resolve any names for me. I have put some names in my vhost and those domain work fine.
Is anyone else having this issue?
Is DNS busted...
Patches are frequently released for my CMS system. I want to be able to extract the tar file containing the patched files for the latest version directly over the full version on my development system. When I extract a tar file it puts it into a folder with the name of the tar file. That leaves me to manually copy each file over to th...
The title of the question says it all. Is it possible? If so, please explain how to do it.
...
I'm writing a program that will be monitoring select files and directories for changes. Some of the files are world writeable, some owner, some group.
What I need to do is be able to figure out the last person to modify (not just access) a file. Somehow I thought this would be simple, given that we know the inode of the file .. however ...
I am trying to figure out which files were changed when I run an app install via make install. I can look at the script, but that calls other scripts and may or may not touch other files, etc. How can I do this programmatically?
...
If there are like 1,000,000 individual files (mostly 100k in size) in a single directory, flatly (no other directories and files in them), is there going to be any compromises in efficiency or disadvantages in any other possible ways?
...
While compiling this morning I had a thgought.
Given a dedicated Linux machine (running Fedora for example), users remotely log in and compile (using gcc) their c++ software, which is stored on their own machines (on a small LAN), linked with symbolic links, to the Linux box.
Assume that each user is compiling exaclty the same code fo...
Is there an escape sequence, such as \012 or something like that?
I want to append on ascii chars to a file using echo ?? >> file
...
I tried to trace ODBC function calls from my program working on Linux. This program dynamically links ODBC manager and then connect to database and fetch some data.
I can trace ODBC calls with unixODBC by adding to odbcinst.ini:
[ODBC]
Trace=yes
TraceFile=/tmp/sql.log
This method is documented by IBM: Collecting data for an ODBC Prob...