General :: How Many File Descriptors Accessing A Given File

Nov 28, 2010

On linux, is there a way to count the number of file descriptors open to a some file?

View 1 Replies


ADVERTISEMENT

General :: File Descriptors With Pipes

Jun 4, 2010

File descriptors with pipes-Can someone help me with this three situations, what would happen?

a) a process open the same file twice and read through two file descriptors
b) a process does fork and both parent- and child-processes read parallell
c) two processes opens and read from same file.

View 5 Replies View Related

General :: Fork Behavior While Copying File Descriptors

Jun 17, 2010

I am quite confused about the following description on fork. Could you please explain it ?The child process shall have its own copy of the parent's file descriptors. Each of the child's file descriptors shall refer to the same open file description with the corresponding file descriptor of the parent.For example, I am opening a socket and then fork. Now, does the child have a separate socket or is shares it with the parent. Does I have any impact on using it in child?

View 2 Replies View Related

General :: Program That Reads Multiple Pipes / File Descriptors And Writes To Standard Output

Feb 23, 2011

Is there already a program that reads multiple pipes or file descriptors and writes to the standard output (not splitting lines).Like cat, but reading all files simultaneously and preserving lines.It is needed to avoid coding of select/epoll loops or using multithreading in simple programs. Like "select loop for bash".

View 1 Replies View Related

Ubuntu :: How Can Max File Descriptors Be Set

Jan 14, 2010

I have run into a limit of 1024 file descriptors. I have searched a lot and have tried various solutions.How can the max file descriptors be set in Ubuntu?

View 1 Replies View Related

Red Hat :: Default File Descriptors

Sep 2, 2009

Can someone please tell me how to permanently increase the default file descriptors limit on RHEL4?right now ulimit -n is 1024...I'd like to increase it to around 10000

View 1 Replies View Related

Server :: Runing Out File Descriptors

Nov 9, 2010

Its my Friend Problem .any one can tells that how can the file descriptors limits can be raise for the squid. In cache.log running out of file descriptors warning is coming.

View 3 Replies View Related

Software :: Free File Descriptors Constantly Zero

May 24, 2010

I am using sabayon 5 - 32bit OS. I experience dullness and sluggish performance now and then.So number of free file descriptors is constantly zero , checked by utilising a while loop sleeping for 5 secs.would this be the root cause of the sluggishness I face in accessing application (media player)Also USB transfer is very very slow and sometimes it gets stuck

View 1 Replies View Related

Software :: No Standard File Descriptors For Init

Jan 10, 2011

I have a weird problem with one of my servers. When system is booted and right before I should se "INIT 2.86 starting..." message, all the messages disappear. Only kernel messages get logged to console and later login prompt, but nothing in betweek (there are 20+ services starting successfully, just without emitting a single character).I checked /proc/PID/fd of the boot script (in my case called /etc/rc.d/rc.boot but that does not matter).

The only significant difference in hardware to other servers is that this one runs RV350 AP [Radeon 9600] graphic card.Now, my question is: where could those FDs go or why are they not opened?Does anyone have a clue about this, or a hint?

View 5 Replies View Related

Red Hat / Fedora :: Any Limitation On Number Of File Descriptors That Can Be Opened

Dec 23, 2008

Is there any limitation on the number of file descriptors that can be opened. If yes how to find the maximum number of file descriptors that can be opened at a time.

View 2 Replies View Related

Server :: Total Free Allocated File Descriptors Always Zero

Jul 23, 2010

I have problem with free allocated file descriptors it's always zero!

View 2 Replies View Related

Programming :: File Access Alert \ Only Gives The Processes Accessing The File At That Particular Moment?

Jul 11, 2011

I am trying to check what all processes are accessing a particular file (a UDP socket in my case) on a filesystem.I am using 'fuser' for that.But, it seems, it only gives the processes accessing the file at that particular moment.Is there any way to continuously run 'fuser' (or some other command) which will give all processes accessing the file during its run?OR is it possible to generate a filesystem alert when a particular process accesses the file?

View 1 Replies View Related

Programming :: Kernel Module - Task_struct / Files Struct, Open_fds, And The Open File Descriptors In Task?

May 1, 2010

This for Kernel 2.6.29.6. I'm trying to code a kernel module that displays process information.

how to count opened file descriptors per task. I have been able to write a module that lists all the current process names along with their pid number in /var/log/messages. Basically, I cycle through the ring of processes using the macro for_each_process(task) and printk the comm and pid of each task. I'm trying to see how many file descriptors each task has open. I've been reading up in books and all over the internet. At first I thought I needed to access max_fds under files_struct, but that just lists the maximum number of file descriptors that can be opened per task, which by default is set at 256. I then thought about counting the elements in the fd_array. But then I learned that every task's fd_array is initially set at 32. Now I know that I need to access open_fds of type fd_set * in files_struct. open_fds is a pointer to all the open file descriptors. The problem is that I don't know how to access a pointer of type fd_set.

Is there a good guide or book that really focuses on type fd_set and open_fds? Every book and resource I've read never really go into depth on this. relationship between files struct, open_fds, and the open file descriptors in task?

View 4 Replies View Related

General :: Accessing .dd File Extension

Mar 2, 2010

I am trying to access a .dd file extension. Do I have to mount it?

VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd
# fdisk -ul VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd
Blocks Id System
VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd1 8192 1535999 763904 5 Extended
VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd4 * 32 8191 4080 4 FAT16 <32M
VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd5 8224 106495 49136 6 FAT16

[Code].....

I am trying to grab some files off this file to create a PXE vmware boot.

View 2 Replies View Related

General :: Accessing Network Files Using File Protocol

Nov 11, 2010

I'm running Red Hat Linux 4.5 in VMWare Server (virtual machine) on Windows XP (host machine). I'm using a loopback adapter to assign an IP address of 192.168.1.100 to the VM.How would I set up file protocol to access the VM's filesystem? Is it possible?

View 1 Replies View Related

General :: Generated .exe File From C File - Run .exe File When Linux System Starts Up?

Apr 6, 2010

i have generated .exe file from C file (ie filename.c ) after compiling in linux machine with -O option. I wish to know about how to run that .exe file when linux system starts up ?

View 3 Replies View Related

Ubuntu :: Several Scripts Simultaneously Accessing One File

Jan 21, 2010

I made a script for batch processing brain scans (with FreeSurfer). I have a batch file stored on an NFS server that looks something like this:

Code:

subject1
subject2
subject3
subject4

now my script is performed on several computers at a time, first it marks an item to be in use (with sed -i 's/.../...'), then processes it (it gets the actual subject files from elsewhere on the server, then puts them back), then marks it to be finished in the list. so during action the batch file should look something like this:

Code:

subject1 finished
subject2 inprogress on host1
subject3 inprogress on host2
subject4

so i tried a run and watched the batch file, now i observed something like this:

Code:

subject1 finished
subject2 inprogress on host1
subject3 inprogress on host2

[code]....

there was only one script running on host1. the subjects never got marked as finished, although i know for a fact that they were finished. also, the script sometimes seemed to hang for moments.

View 4 Replies View Related

Ubuntu :: Accessing File System In Terminal?

Nov 7, 2010

i just installed ubuntu on my old dell inspiron 4000 laptop. I have a problem with my screen though thats making ubuntu split in half makign it nearly impossible to use.. i found the possible solution at [URL] but im havin g trouble accessing File System where the document i need is located The solution states to open etc/X11 then to do some other line and change something in a text but i have no idea how to access File System using terminal?

View 5 Replies View Related

Server :: Accessing Other Linux File Systems?

Jun 19, 2010

I have 3 linux systems configured for running applications in each, named system1, system2 and system3. I have around 100 GB of space in system3 under /usr but not much being used. In System1 very less space is there but mostly hits coming here and need to have proper backup, as the system1 is quite old and not planned partitons properly. So I want to use a disk having more space for backup requirements.

View 17 Replies View Related

Server :: Accessing Database In FBD Data File

Feb 19, 2011

We purchased a new database system at work last October, ditching the old system because of a lack of support from the vendor. This is a retail Point of Sale and Backoffice database system. I am not sure what system the new one runs on, but the system we replaced was a Firebird data base. The reason I am posting is because we are now in need of the information contained in the old database which was not completely imported into the new system. Unfortunately, we parted company with the old vendor under extremely hostile conditions, and they are not a source of help for this problem, nor are the new vendors.

Basically the problem is this: The database in on a Windows XP system and I found a copy of SQL Manager Lite 2008 on the system, which after quite a bit of studying, I figured out how to extract the database into a removable file. I have this file (178MB) on a USB stick in a file called Backoffice.fbd. I can get into this database with MySQL. All I want to be able to do get into the database and create tab deliminated spreadsheet files for each of the database sections (Customers, Repairs, Sales History, stock files, etc.) Is it possible to do this with Ubuntu and MySQL and if so, can an expert suggest one or two things to get me started.

View 3 Replies View Related

Programming :: Accessing File And Manipulating With With Folders?

Mar 12, 2010

I have a .csv file with a list of Drugs Name that i need to remove from the folder. The folder consist of files that stored as drugname.mol format.

What i need to do is to sieve out those mol files from the folder?

How do i

(1) access the drugs names from the .csv file line by line (variable x)

(2) how do i access the files in the folder one by one (variable y)

(3) how can i do a comparison whether $x.mol == $y

(4) and shift them to another folder if $x.mol == $y

View 11 Replies View Related

Fedora Servers :: Accessing Index File By Hostname?

Sep 6, 2011

I have my home network up and running. I can access my index file by the ip I gave to eth0 - 192.168.0.2

I put this same ip into etc/hosts:
192.168.0.2 localhost localhost.localdomain
One space separates the hostnames from the ip in /etc/hosts.
The hostname command returns: localhost.localdomain

I have /etc/resolv.conf configured the right way, so I can use my isp's DNS servers. I know this because yum works and I can ping anywhere by url. The next step is to learn to access the index file by url locally on my own network.

View 7 Replies View Related

Ubuntu :: Accessing EXT4 File System Through Windows

Jul 31, 2010

Windows 7 by default cannot read/mount Ext4 type file systems. I installed Ext2fsd which allows me to mount my linux drive and navigate all the subfolders of my root (/) directory, however when I click on a folder from there (I.E, /home) this is what comes up: [URL].

View 4 Replies View Related

Ubuntu :: Accessing File System From Windows Vista?

Nov 7, 2010

I have Ubuntu 10.10 and Windows Vista on my laptop. I would like to be able to access the File System in Windows because I need to use iTunes to sync my iPod, while I actually get most of my Music in Ubuntu.

View 8 Replies View Related

Programming :: CSH Permission Denied When Accessing Local File

Mar 9, 2011

I've just recently started learning shell scripting and I've been working on a basic csh script, but I've been having a few problems. Here's the script

Code:
#!/bin/csh
echo Enter a file name
$< = FILE ##Name of file
echo enter a size (in kilobytes) to monitor
SIZETOMON = $< ##Size value that's input by user
du -k $FILE = $SIZE ##Size of the file that the user wishes to monitor
while (1)
if $SIZE > $SIZETOMON then
echo ALERT: File size is greater than $SIZETOMON
end

And here's the output
Code:
/home/lucer/foo.txt: Permission denied.
Badly placed ()'s.

I'm not really sure what the issue is with the "badly placed ()'s" or why it won't let me access files that I can access with the same shell when it's not in a script.

View 14 Replies View Related

General :: Convert Fdf File To Xsf File Or Xyz File On Ubuntu 9.10_32 Bit?

Nov 7, 2010

I want to convert fdf file to xsf file or xyz file on ubuntu 9.10_32 bit .

View 5 Replies View Related

Ubuntu Installation :: Getting A Phtml File While Accessing Webserver Through Firefox?

Apr 27, 2010

I'd like to ask a question about the apache webserver. I'm very sorry to post this topic here. It seems likely that this post is better off in server platforms and i didn't know where to post it.

Anyway, i have a problem with my apache webserver. Well, not so much however it is behaving strangely. When i installed the apache webserver and accessed the webroot (/var/www) through my webbrowser it said: It works!. Then i added a folder with an .php file to the root folder and get an error: access denied when i accessed it through my webbrowser. I'v tried to modify /var/www with chmod but this didn't work, however i do get a .phtml file offered as a download.

Also i have looked for a configuration file (httpd.conf) to alter the "DirectoryIndex" string. I did find the apache2.conf instead but it has no "DirectoryIndex" directive. I did google this problem but there is no straight answer to this.

View 5 Replies View Related

Ubuntu :: Accessing File System On Internal Hard Drive In 11.04

Jul 14, 2011

when I load into Ubuntu 11.04 from my USB drive, why can't I access the files on my internal hard drive? I mount the drive but I cannot see any of the music, videos or documents contained on that drive (which is also an Ubuntu 11.04 drive). I was wondering so I could copy those files onto my external hard drive and reinstall since my Ubuntu crashed.

View 3 Replies View Related

Fedora :: Stale File Handle - Accessing WLAN0 Interface?

Mar 22, 2010

I've got a problem while accessing the /etc/sysconfig/network-scripts/ifcfg-wlan0 file, CLI's throwing: "Stale File Handle" - there's no access to this file. Problem is the same regardless wlan0 interface is up or down.

View 2 Replies View Related

Networking :: Accessing Home File/print Server Through The Internet?

Mar 30, 2011

I just received a 2 tb drive for my server to be. The pc is a P4 3.06 ghz with 4 gb of ram. I have found a number of posts on this forum, as well as on the net in general, about setting up a file/print server at home. What I want to be able to do is to access my server through the internet from my office computer (windows 2000) How can I do that? I have not yet spent much time trying to decide which distro I will use. It seems that a number of them are suitable for this purpose, so I just plan to try several from a live cd and then choose one.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved