how to access files via their descriptors?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to access files via their descriptors?
Prev   Next
# 1  
Old 01-31-2009
how to access files via their descriptors?

hello, I'm new here, and new to Linux.
I was wondering how to get hold of a certain file's descriptor, and how to use that number so that I access the contents of the file.

please give me a full example, that is
(1) how to determine the descriptor and
(2) what magic symbols to use so that one can open the file in say mcedit.

thank you.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Read loop from two files using descriptors

What I would like to do is read each line in the atdinfile: A sample atdinfile would look like this: 651 652 653 654 655 656 657 658 659 660 661 664 665 666 667 668 (5 Replies)
Discussion started by: woodson2
5 Replies

2. Shell Programming and Scripting

How to access files from different directories and to perform search action in those files?

Hi, I want to access files from different directories (for example: /home/dir1/file1 , /home/dir2/file2 ...) Like this i have to access these files(file1, file2...). (3 Replies)
Discussion started by: bangarukannan
3 Replies

3. UNIX for Dummies Questions & Answers

kernel giving access for multiple users to access files

hi all, i want to know y kernel is giving access for multiple users to access a file when one user may be the owner is executing that file. Because other user can manipulate that file when the other user is executing that file, it will give the unexpected result to owner . plz help me... (1 Reply)
Discussion started by: jimmyuk
1 Replies

4. UNIX for Dummies Questions & Answers

Semaphores and File Descriptors

What is the difference between a file descriptor and a semaphore? My basic understanding is: - a file descriptor is a small positive integer that the system uses instead of the file name to identify an open file or socket. - a semaphore is a variable with a value that indicates the... (1 Reply)
Discussion started by: Mr_Webster
1 Replies

5. UNIX for Dummies Questions & Answers

how to list the files using File Descriptors

hello, I have written a script named listall.sh with the following codes init. #!/bin/bash PATH="/proj/cmon/$1" echo $PATH if ; then echo "Usage: $0 ***" exit 1 else ls -l $PATH/*.sc fi Here there are 3 subdirectories (namely - src, data and jobs)under /proj/cmon, so... (2 Replies)
Discussion started by: shyjuezy
2 Replies

6. Programming

Sockets and File descriptors

I am in a Systems programming class this semester, and our current project is to write a program utilizing sockets and fork. For the project, I decided to make my own instant messaging program. I have the code completed, but I have a problem that keeps old clients from communicating with new... (3 Replies)
Discussion started by: gstlouis
3 Replies

7. UNIX for Dummies Questions & Answers

file descriptors

i m trying to learn processes in unix and i've been reading this but i don't quite get it. its regarding file descriptors. : each is a part of file pointers, they point to another area. indexes into an Operating system maintained table called "file descriptor table". one table per process. may... (3 Replies)
Discussion started by: a25khan
3 Replies

8. UNIX for Advanced & Expert Users

File Descriptors

Hello all, A few questions on file descriptors ... scenario : Sun Ultra 30 with Sun OS 5.5.1 , E250 with Solaris 2.6 In one of my servers, the file descriptor status from the soft limit and hard limits are 64 and 1024 respectively for root user. Is the soft limit (64) represents the... (3 Replies)
Discussion started by: shibz
3 Replies

9. Programming

File Descriptors

Hi, I have written a daemon process, to perform certain operations in the background. For this I have to close, the open file descriptors, Does anybody know how to find out the number of open file descriptors ? Thanks in Advance, Sheetal (2 Replies)
Discussion started by: s_chordia
2 Replies

10. UNIX for Dummies Questions & Answers

Need help to access/mount so to access folder/files on a Remote System using Linux OS

Hi I need to access files from a specific folder of a Linux system from an another Linux System Remotely. I know how to, Export a folder on One SCO System & can access the same by using Import via., NFS in the Sco Unix SVR4 System using the scoadmin utility. Also, I know to use mount -t ... (2 Replies)
Discussion started by: S.Vishwanath
2 Replies
Login or Register to Ask a Question
ETSF_IO(1)							   User Commands							ETSF_IO(1)

NAME
etsf_io - manual page for etsf_io SYNOPSIS
etsf_io [-h | -a action] [[-i file]...] [[-f flag]...] DESCRIPTION
[-o file] [arguments] Handle ETSF files, see --action option. -h --help : show this little help. -a --action value : give the action to perform. Possible action may be: * 'merge' to gather several files that have been splitted. * 'content' to get the name of specifications the file matches. * 'check' to check the validity of the file against specifications. -o --output-file file : give the path to the output ETSF file. -i --input-file file : give the path for an input file. This option can be used one or several times. -l --list : when action is check, it give the list of available flags.q -f --flag value : give a flag name (get valid names from -l option). Examples: Merge three files, etsf_io -a merge -i file1.nc -i file2.nc -i file3.nc -o output.nc Get the contents of file test.nc, etsf_io -a content test.nc Get the list of flags for validity checks, etsf_io -a check -l Checks with two flags, etsf_io -a check -f flag1 -f flag2 test.nc SEE ALSO
The full documentation for etsf_io is maintained as a Texinfo manual. If the info and etsf_io programs are properly installed at your site, the command info etsf_io should give you access to the complete manual. etsf_io November 2011 ETSF_IO(1)