01-17-2002
transfer an open file description between two process
How can I transfer an open file description between two process?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
When I am browsing the web and I end up in a directory with no HTML index file (ie index.html), I see something like this:
Index of /k
Name Last modified Size Description
--------------------------------------------------------------------
115-1564_CRW.jpg ... (4 Replies)
Discussion started by: PearPie
4 Replies
2. UNIX for Advanced & Expert Users
I have set the maximum no of file descriptors open in a process to the value 8192 using the following lines
set rlim_fd_max=8192
set rlim_fd_cur=8192
in the /etc/system file.
I rebooted the machine and the command ulimit -n / -Hn both display the limits as 8192. However when I run my... (2 Replies)
Discussion started by: lakshmankumar12
2 Replies
3. Shell Programming and Scripting
We have a process that is running out of file handles. Is there some command line way to determine this that we can include into a cron script?
Please let me know
JAK (3 Replies)
Discussion started by: jakSun8
3 Replies
4. Shell Programming and Scripting
hi,
I'm using HP unix tru64 & Win XP.
i'm download a file from winxp to unix using ftp.
how to know whether a remote file is currently being used by the process or not? (my loaction unix server) (7 Replies)
Discussion started by: Tlg13team
7 Replies
5. Solaris
Hi
want to know what file (descriptor+filename+socket) is being accessed by particular process on solaris.
Purpose : while running perf. test, needs to find where is the bottleneck.
We are providing concurrnet load for around 1 hr and needs to capture data related to file usage pattern... (1 Reply)
Discussion started by: raxitsheth
1 Replies
6. Red Hat
First post, sorry to be a bother but this one has been dogging me. I have a process user (java application server) that trips a resource limit every couple weeks and need help finding what limit we're hitting.
First, this is what's running:
This is the error when jobs are run or the... (0 Replies)
Discussion started by: Katahdin
0 Replies
7. Shell Programming and Scripting
my user copy large files, and it's take 10min for file to be copied to the server (/tmp/user/ files/), if in the meantime start my scheduled script, then it will copy a part of some file to server1
my idea is to check the file size twice in a short period (1-2 seconds) of time, then compare, if... (5 Replies)
Discussion started by: waso
5 Replies
8. SCO
Hi
How to increase maximum number of open file in "sco xenix binary" running in "sco unix openserver 5.0.7" ?
I have changed "NOFILES" kernel parameter to 512, but xenix binray can't open more than 60.
tnx (4 Replies)
Discussion started by: javad1_maroofi
4 Replies
9. Shell Programming and Scripting
Hi,
Requirement is encrypt key should pick value from file instead of passing their in command.
how can i create .p file which contains crypt value.
i.e.
crypt <trade.csv> tr.x $CKEY fcrypt.p
crypt < tr.x $CKEY fcrypt.p
i want to encrypt and decrpt csv file and i am using following... (2 Replies)
Discussion started by: rizwan.shaukat
2 Replies
lp(7D) Devices lp(7D)
NAME
lp - driver for parallel port
SYNOPSIS
include <sys/bpp_io.h>
fd = open("/dev/lpn", flags);
DESCRIPTION
The lp driver provides the interface to the parallel ports used by printers for x86 based systems. The lp driver is implemented as a
STREAMS device.
IOCTLS
BPPIOC_TESTIO Test transfer readiness. This command checks to see if a read or write transfer would succeed based on pin status.
If a transfer would succeed, 0 is returned. If a transfer would fail, -1 is returned, and errno is set to EIO.
The error status can be retrieved using the BPPIOC_GETERR ioctl() call.
BPPIOC_GETERR Get last error status. The argument is a pointer to a struct bpp_error_status. See below for a description of the
elements of this structure. This structure indicates the status of all the appropriate status bits at the time of
the most recent error condition during a read(2) or write(2) call, or the status of the bits at the most recent
BPPIOC_TESTIO ioctl(2) call. The application can check transfer readiness without attempting another transfer using
the BPPIOC_TESTIO ioctl().
Error Pins Structure
This structure and symbols are defined in the include file <sys/bpp_io.h>:
struct bpp_error_status {
char timeout_occurred; /* Not use */
char bus_error; /* Not use */
uchar_t pin_status; /* Status of pins which could cause an error */
};
/* Values for pin_status field */
#define BPP_ERR_ERR 0x01 /* Error pin active */
#define BPP_SLCT_ERR 0x02 /* Select pin active */
#define BPP_PE_ERR 0x04 /* Paper empty pin active */
Note: Other pin statuses are defined in <sys/bpp_io.h>, but BPP_ERR_ERR, BPP_SLCT_ERR and BPP_PE_ERR are the only ones valid for the x86
lp driver.
ERRORS
EIO A BPPIOC_TESTIO ioctl() call is attempted while a condition exists that would prevent a transfer (such as a peripheral
error).
EINVAL An ioctl() is attempted with an invalid value in the command argument.
FILES
/platform/i86pc/kernel/drv/lp.conf configuration file for lp driver
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Architecture |x86 |
+-----------------------------+-----------------------------+
SEE ALSO
sysbus(4), attributes(5), streamio(7I)
NOTES
A read operation on a bi-directional parallel port is not supported.
SunOS 5.10 21 May 1997 lp(7D)