Skip to content
Advertisement

What killed my process and why?

My application runs as a background process on Linux. It is currently started at the command line in a Terminal window. Recently a user was executing the application for a while and it died mysteriously. The text: Killed was on the terminal. This happened two times. I asked if someone at a different Terminal used the kill command to kill

Static link of shared library function in gcc

How can I link a shared library function statically in gcc? Answer Refer to: http://www.linuxquestions.org/questions/linux-newbie-8/forcing-static-linking-of-shared-libraries-696714/ You need the static version of the library to link it. A shared library is actually an executable in a special format with entry points specified (and some sticky addressing issues included). It does not have all the information needed to link statically. You can’t

SVN: Ignoring an already committed file

I have a settings file that is under version control using subversion. Everybody has their own copy of this file, and I need this not to be ever committed. However, like I said, there is already a copy under version control. My question is: how do I remove this file from version control without deleting everyone’s file, then add it

Replacing String Columnwise Using Sed

Given this data I want to replace the string at 2nd column into “” if it is “qux”. Resulting: How do you do that with sed? In particular the data is very big with ~10^7 lines Answer I wouldn’t actually do it with sed since that’s not the best tool for the job. The awk tool is my tool of

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

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 memory they’ve used for the

Can I tell Linux not to swap out a particular processes’ memory?

Is there a way to tell Linux that it shouldn’t swap out a particular processes’ memory to disk? Its a Java app, so ideally I’m hoping for a way to do this from the command line. I’m aware that you can set the global swappiness to 0, but is this wise? Answer You can do this via the mlockall(2) system

fcntl, lockf, which is better to use for file locking?

Looking for information regarding the advantages and disadvantages of both fcntl and lockf for file locking. For example which is better to use for portability? I am currently coding a linux daemon and wondering which is better suited to use for enforcing mutual exclusion. Answer What is the difference between lockf and fcntl: On many systems, the lockf() library routine

Subversion web interface [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations. Closed 6 years ago. Improve this question I have recently installed Subversion onto a Linux server (CentOS) and

Resize a list of images in line command

I would like to resize a list of images, all in the directory. To achieve that, I use convert from imagemagick. I would like to resize into I was wondering if there is a method to achieve this in a single command line. An elegant solution could be often useful, not only in this case. EDIT: I would like a

Advertisement