Hi all,
In linux, if I have a file I'm sharing with a group, and I put the file on a USB memory stick, for example, and copy it to a computer that doesn't have the same group or users, does the file have no permissions for anyone on that new computer? What if I bring a linux file that only lets user X to read it to a windows machine? ...
I have a process x that I want to check for leaks with valgrind. The problem is that x is run by y, and y in turn is run by z. I can't run x standalone because y and z setup the environment for x, such as environment variables, command line switches, files needed by x etc.
Is there any way I can tell valgrind to run on z but to fol...
I'd like to login to the Forums part of community-server (e.g. http://tinyurl.com/cs-login) and then download a specific page and perform a regex (to see if there are any posts waiting for moderation). If there is, I'd like to send an email.
I'd like to do this from a Linux server.
Currently I know how to download a page (using e.g. w...
Working in an AIX environment, I'm issuing the following tar command and receive errors on sockets.
Question 1. How can I avoid the socket errors?
Question 2. Can I rely on the tar file to contain all files excluding the ones in error?
$ tar -cvf /post_patches.tar /xyz
tar: /xyz/runtime/splSock6511 could not be archived
tar...
I have an application that is sensitive to the directory it gets invoked from — it loads some files using relative paths.
When I start the program through a debugger, how can I control what the initial current directory will be?
I'd prefer to avoid adding special code to the debugged program to make it call chdir; my instinct is that t...
I need to take an existing xml file, and modify just a few attributes and write the file back out.
I was thinking of using libxml2 to get this done. Application is C/C++ running on Linux.
Thing is, libxml2 seems to include several variations of the kitchen sink, along with portable washrooms, showers, and various other things connecte...
I have a multi-threaded application that is hanging on a call to _dl_sysinfo_int80(). According to gdb, all threads are stuck in this call.
The top of the stack trace looks like:
#0 0x002727a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1 0x004f23de in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0
#2 0x004ef00b in _L_...
I'm running Vista on my laptop, but would like to virtualize Ubuntu so that I can boot it from time to time for my personal use (e.g. running code, testing Linux programs). I tried this with Virtual PC 2007 (I allocated 1G of RAM for Ubuntu), and it was very slow. Should I try Hyper-V instead? (Note: I know very little about virtualizati...
I want to ask if there is any way to code in MASM under Linux. Even tough NASM is quite popular under Linux, it still differs for some instruction style on code. Currently I am using Ubuntu 8.10 (Intrepid Ibex).
...
Hi
What is the difference between using system() to execute a binary and using the combination of fork/execvp.
Is there any security/portablility/performance difference.
...
Hi, I just installed a linux system (Kubuntu) and was wondering if there is a program to make python programs executable for linux. Thanx in advance :)
...
I need in a bash script to get details about a file when I know the inode.The system is Linux.
...
Hello folks,
I am writing a QT application and I need to embed a terminal (we say,xterm) within a QDialog, like some KDE application (see kdevelop/kate/...).
I've been trying with:
- QX11EmbedContainer placed into the QLayout of my QDialog
- QProcess for the program I want to excecute
I expect the QProcess running within the QX11Emb...
What's the best way to kill a process and all its child processes from a Perl script? It should run at least under Linux and Solaris, and not require installation of any additional packages.
My guess would be to get a list of all processes and their parents by parsing files in /proc or by parsing the output of ps (neither of which seems...
I have a linux box with a bank of modems and need to create demand-dial (outbound) PPP connections to a very large set of remote machines. Since I have far more remotes than local modems, I'd like to launch one or more instances of pppd in demand mode, but not allocate a particular modem until a connection is requested. When the connec...
I'm working on an application controller for a program that is spitting text directly to /dev/tty.
This is a production application controller that must be able to catch all text going to the terminal. Generally, this isn't a problem. We simply redirect stdout and stderr. This particular application is making direct calls to echo and re...
This isn't working. Can this be done in find? Or do I need to xargs?
find -name 'file_*' -follow -type f -exec zcat {} \| agrep -dEOE 'grep' \;
...
I need to set a system environment variable from a bash script that would be available outside of the current scope. So you would normally export environment variables like this:
export MY_VAR=/opt/my_var
But I need the environment variable to be available at a system level though. Is this possible?
...
I have two directories in the same parent directory. Call the parent directory base and the children directories alpha and bravo. I want to replace alpha with bravo. The simplest method is:
rm -rf alpha
mv bravo alpha
The mv command is atomic, but the rm -rf is not. Is there a simple way in bash to atomically replace alpha with br...
When you run "top" and see all running processes, I've always wanted to know just what everything actually means. e.g. all the various single-letter state codes for a running process (R = Running, S = Sleeping, etc...)
Where can I find this?
...