Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago. Improve this question We need to write some software that will compile and run on both an M…
Tag: linux
WX_CONFIG_OPTIONS: command not found
I’m trying to build Aegisub on linux mint, I’m getting the following error during ./autoget.sh Is there a specific package that I need to install or what exactly is the problem here? Answer There used to be an Arch Linux packaging page which stated that aegisub only supported version 2.9 of wxGTK …
How to display the process currently holding a semaphore?
In userspace Linux, I have a process blocking on a semaphore, as found by strace. Once the error condition occurs, the blocking is repeatable, so there must be another process that holds the semaphore and did not release it. Is there a way to know which other process is currently holding the semaphore? ipcs l…
Can you recommend a free light-weight MySQL GUI for Linux? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and …
How can I get name of the user executing my Perl script?
I have a script that needs to know what username it is run from. When I run it from shell, I can easily use $ENV{“USER”}, which is provided by bash. But apparently – then the same script is run from cron, also via bash – $ENV{“USER”} is not defined. Of course, I can: But it…
Check the open FD limit for a given process in Linux
I recently had a Linux process which “leaked” file descriptors: It opened them and didn’t properly close some of them. If I had monitored this, I could tell – in advance – that the process was reaching its limit. Is there a nice, Bash or Python way to check the FD usage ratio for a given process in a Ub…
How to remove all .svn directories from my application directories
One of the missions of an export tool I have in my application, is to clean all .svn directories from my application directory tree. I am looking for a recursive command in the Linux shell that will traverse the entire tree and delete the .svn files. I am not using export, as this script will be used for some…
Deploy ASP.NET MVC on Linux: Best Practices, Tools & Surprises
I’m wondering about best practices to develop ASP.NET MVC apps with an option to deploy on Linux. If you are creating these kinds of MVC apps, What Linux/Mono platform are you targeting? How much of the development are you doing on Windows and how much on Linux? Are you using an ORM to abstract the data…
Trying to understand gcc’s complicated stack-alignment at the top of main that copies the return address
hi I have disassembled some programs (linux) I wrote to understand better how it works, and I noticed that the main function always begins with: so my question is: why all this work is done ?? I only understand the use of: the rest seems useless to me… Answer I’ve had a go at it:
Python: Get Mount Point on Windows or Linux
I need a function to determine if a directory is a mount point for a drive. I found this code already which works well for linux: But I’m not sure how I would get this to work on windows. Can I just assume the mount point is the drive letter (e.g. C:)? I believe it is possible to have a