linux

what do the "---p" permissions in /proc/self/maps mean ?

I understand the meaning of rwxps bits. r-xp is for .text. rw-p is for .data/.bss/heap/stack. What is the use of just "---p" pages For e.g see this output of bash> cat /proc/self/maps 00400000-0040b000 r-xp 00000000 08:03 827490 /bin/cat 0060b000-0060c000 rw-p 0000b000 08:03 827490 ...

Linux Paging and interrupt handler

Dear Sir/Madam, I am trying to implement ready boost feature in LINUX for my final year undergraduate project.I was just researching and I found out that whenever a page fault occurs the CPU sends Interrupt 14.So, I need your guidance on the foll scheme I am thinking of: I will create an interrupt handler which will be activated when an ...

warning: GDB: Failed to set controlling terminal: Invalid argument

I'm using Qt Creator on Ubuntu to develop C. Whenever I run with the debugger, I get the message warning: GDB: Failed to set controlling terminal: Invalid argument. This happens even with a hello world program. How can I solve this? ...

How many TCP connections can Ruby deal with ?

I have a general ubuntu server, and I want to use Ruby to deal with many TCP requests, I want to know how many connections it can handle. ...

Statically linking libraries in linux

I have an application which links to a number of libraries, most of them are available as both static as well as dynamic library on my machine. Below is the output of the ldd command. linux-gate.so.1 => (0xffffe000) libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0xb782c000) libc.so.6 => /lib/libc.so.6 (0xb76cc000) libcrypto.so.0.9.8 => /...

Wlan information in mono on linux

Hello Experts I am working on a project that will run on a small linux platform. All applications on the system must be written in c# that will be executed via mono. But that is causing me some problems with the network information port. All the examples I have been able to find on the topic on the internet is for .net, and it seems tha...

Unresolved symbol on DLL loadup.

Hi, I am loading a DLL from an application and I want the DLL to be able to use a function implemented in the application. The definition of the function is put in a header and is included in the DLL. Can anyone tell me what I am doing wrong here or whether this can't be done? Thanks for any help. App: include <API.h> extern "C" in...

Version Control soft that will keep ALL files and their metadata from POSIX FS (ext3/ext4)

Hi, all. THE SCENARIO I'm developing a Root FS for some embedded Linux device. It is sitting on the host, exported via NFS and my development board mounts is under "/". The workflows that I need are: - to share my FS to other developers(they have with their own dev. boards) - to backup my Root FS onto some "server" - to deploy my Root ...

libpcap inter-arrival times and scheduler

I am doing research about network traffic characterization. While processing collected data (captured by tcpdump and saved to a database), I stumbled over the weird phenomenon with packet (or flow) inter-arrival times: Inter-arrival times of 35-170µsec are never observed Of course, without a DAG card (which would do hardware time stamp...

AF_UNIX in windows

Hi, I have an application that I wish to use over windows. I am using AF_UNIX family un windows. I wish to know that AF_UNIX family is available in windows. If not then is there any alternate to AF_UNIX ? Thanks Arpit ...

Linux Redirections; Possible to Toggle Between Redirects?

Hi. I want to be able to toggle between redirects. ie: Redirect #1 would be: Don't redirect to stdout, Redirect the output to a file. Redirect #2 would be: Don't redirect to file... rather redirect to stdout Is it possible to do this at runtime? ...

password fetch using python

import pwd import operator # Load all of the user data, sorted by username all_user_data = pwd.getpwall() interesting_users = sorted((u for u in all_user_data if not u.pw_name.startswith('_')), key=operator.attrgetter('pw_name')) # Find the longest le...

1 Linux PC with two network cards cannot produce network traffic for test system

These questions relate to the basics of networking, but I have not found an answer yet! Question 1: Can a 100Mbps switch handle 2 simultaneous TCP streams running at 100Mbps? To illustrate this if you have 4 PC's on 1 switch (100Mbps with no other connections) and you had two separate streams, what speed would they reach? Would one stre...

how to perform automated Unix input?

How can you set a string to be used instead of standard input? For example, when running the latex command in Unix it will always find some trivial errors, to skip through all errors you have to enter "r" into the command line (I now know that with latex specifically you can use -interactionmode nonstopmode, but is there a more general s...

How do I get LWP using Linux glibc ?

I developed a process with some threads on a Linux machine (Ubuntu). I'd like to know how can i get LWP from each thread (using a glibc function), once the PID and PPID are always the same for all the threads of the process. UID PID PPID LWP C NLWP STIME TTY TIME CMD root 2588 2587 2588 0 11 00:05 ? ...

Automating serial port communication on Linux

I have a linux server (Red Hat 4) with one serial port connection to an embedded linux device, and another serial port connection to a power controller for that device. My current way to control them is to open two minicom sessions, each in its own window. I would like to automate this communication through scripts. At first, I began to ...

PTY.spawn child exit code ?

Hello, I'm trying to manage a ssh connection to a network device via the PTY module, with a code similar to this : cmd_line = "ssh [email protected]" begin PTY.spawn(cmd_line) do |r_f,w_f,pid| ... rescue PTY::ChildExited => cended ... end The whole i/o works pretty well, however I don't know how to get the exit status...

The number of processes a user is running using bash

Hi, I would like to know how I could get the number of processes for each user that is currently logged in. Thank you. ...

generate public and private keys using gcrypt library in C

Hi all, I am working on gcrypt library and want to generate public/private key pair in C under linux environment. I want to use S-expressions for this. I have read the reference manuals which gives some idea about the functions which can be used but not very sure how to use it. Can someone point me to good sources or some sample codes ...

csv to excel conversion

Is there a way to convert csv file to excel file upon request through apache/.htaccess ...