For questions that are specific to the GNU/Linux operating system. If your question has nothing to do with Linux APIs or Linux-specific behaviour then do not use this tag, even if you are running on Linux.

learn more… | top users | synonyms | linux jobs

0
votes
0answers
7 views

mysql using all memory and moving into swop

We have a dedicated Linux Server for our mysql DB's. We have been having terrible speed issues with any scripts we run, it seems to get worse over time, as we run more scripts. I can run these scripts ...
0
votes
0answers
3 views

Possible to change in-flight HTTP traffic with an L2TP VPN server?

Not sure if this concept is entirely possible, but I'm trying to modify HTTP requests in-flight on my VPN server, and I was wondering if anyone might have experience with this. I'm using openswan on ...
0
votes
1answer
8 views

Redirecting output from a function block to a file in Linux

Just like we redirect output from a for loop block to a file for () do //do something //print logs done >> output file Similarly in shell script,is there a way to redirect output from a ...
0
votes
1answer
8 views

dlopen vs linking overhead

Suppose I have a library - foo.so . When building my binary (which needs this library), I can either (1) link foo.so , or, (2) within the program source code, dlopen this library and then call ...
-1
votes
0answers
11 views

how does ext4 inode table works?

I'm now doing an assignment on locating a file in an ext4 file system in a ubuntu. I got to this sector 582 which I checked should be the starting sector of inode table. However, it looks weird. I ...
0
votes
0answers
5 views

what is significance of “Mlocked” in /proc/meminfo file in Linux (CentOS)

I am using CentOs (2.6.32-279.el6.i686). I am not able to get details of use of "Mlocked" parameter in /proc/meminfo file. Can some one provide any details on this? In most of time, the value of this ...
4
votes
1answer
66 views

How can I call bash from C with a clean environment?

I'm attempting to set up my computer such that I can authenticate myself using an external device connected to a python script. I started by replacing the login program in inittab with my own program, ...
1
vote
1answer
10 views

How to capture result of sub-processes within shell

Here is the problem I have: I want to trigger n different subprocesses (functions calling dql procedures) in parallel within my script and I want to capture the result (not the return code) of each ...
3
votes
2answers
42 views

How can I do division with variables in a Linux shell? [on hold]

When I run commands in my shell as below, it returns an expr: non-integer argument error. Can someone please explain this to me? $ x=20 $ y=5 $ expr x / y expr: non-integer argument
0
votes
2answers
12 views

Pull remote changes using git and upstart

I would like to pull the changes as user 'ubuntu' during startup. The upstart file is: description "Custom startup script" start on filesystem script cd /var/www/gitstuff git checkout master ...
1
vote
1answer
20 views

Same shell script has different behaviour on different Linux distributions

I simply wrote a shell script to make me compile my code easily. My directory tree looks like: TOPDIR | +--- DIR[1] . . . +--- DIR[n] | +--- DIR[n+1] | +--- makefile I used to use ...
0
votes
0answers
10 views

What is the best way to check users locked?

What is the best way to check users locked in linux/unix? Does anyone have any experience to share? I would like to create a script to check it in many servers, so, I will probably need to create ...
0
votes
0answers
7 views

How to specify a listening port for OpenLDAP in slapd.conf

Though I know we can specify another port number when lauching OpenLDAP in commandline , I would like to set it up in slapd.conf so that service slapd start will make life easier.
1
vote
2answers
17 views

Serving changing files with Flask

I currently am using Flask to serve up a visual programming environment. I would like the users to be able to load the code currently in the system if they come back later. I have tried using: return ...
1
vote
1answer
24 views

Setting my Python Path?

I'm trying to run my boto script but I get the following error: ImportError: No module named boto.swf.layer2 According to pip freeze I have boto installed so I'm wondering what has gone wrong here. ...

1 2 3 4 5 3764
15 30 50 per page