06-08-2001
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Anyone know if there is a way to keep the "/dev/floppy/... can now be ejected" messages from coming up on the screen? I'm using Solaris 8 and it pops a message up, which is fine, but it also writes text in the terminal session... that is what I'm trying to avoid. I have tried running in silent... (4 Replies)
Discussion started by: Serious_Lee
4 Replies
2. Solaris
Hi I have placed a CD into the rom and now I can not eject it.
when i type in
eject cdrom i get the follwing error
root@ssdb0009 # eject cdrom
/vol/dev/rdsk/c0t6d0/dp_a0500_solaris_7_and_8_cd: Device busy
Therefore i try and eject it with the -f option (eject -f cdrom) I still get the... (4 Replies)
Discussion started by: dennisca
4 Replies
3. UNIX for Dummies Questions & Answers
Hello
I was installing oracle 9 release 2 on solaris 9
everything was fine but when
the installation ask me for disk 2. I cant eject
cdrom. sends me this message:
/vol/dev/rdsk/c1t6d0/orc19201_1: Device busy
I open another terminal and with root user try this eject cdrom
and nothing. I... (1 Reply)
Discussion started by: lo-lp-kl
1 Replies
4. Solaris
We have just got a Sun L8 tape library and I was trying to script a couple of things. One was to eject (export) a tape from the machine. nsrjb seems to have an enormous amount of options but this is one thing I have not been able to do. Anybody ever managed to do it?
Cheers (1 Reply)
Discussion started by: Argus
1 Replies
5. AIX
Now i have a prolem!
I double click on my zip file from cdrom.
System can not read my zip file and i can not eject my cdrom.
How can i manage process and can i end a process
or how can i eject my cdrom?
please have me! thanks (4 Replies)
Discussion started by: leenguyen0101
4 Replies
6. AIX
does someone knows how to eject a dvd/cd device?
thx (2 Replies)
Discussion started by: jcpetela
2 Replies
7. Filesystems, Disks and Memory
Hi,
I have a damaged tape that will not eject on aix.
How can i force this.
I tried tctl -f /dev/rmt0 offline
But i get the following error:
the media surface is damaged (1 Reply)
Discussion started by: progressdll
1 Replies
8. Filesystems, Disks and Memory
Hi
i´m working with aix 6.1 and DL4100 (virtual tape library from EMC) and i makes backups (mksysb) into virtual drive (virtual standalone drive). I need eject de tape when backup is finished and I don't now what command use. Thanks for your help. The commands mt and tctl doesn't works.... (0 Replies)
Discussion started by: wolaf
0 Replies
9. AIX
Dear Guy's
I'm using this command to eject the tape and I got many options
/root>mt -f /dev/rmt0 eject
mt: 0511-575 eject is not a recognized subcommand.
Usage: mt Subcommand
Valid subcommands are:
weof
eof
fsf
bsf
fsr
... (1 Reply)
Discussion started by: Mr.AIX
1 Replies
10. Solaris
The green cdrom light is blinking on our Sun Solaris server. I tried the eject command to eject cdrom:
eject cdrom
cdrom: No such file or directory
bash-2.05# eject
No default media available
bash-2.05# eject cdrom0
cdrom0: No such file or directory
The message log file shows:
Oct 19... (6 Replies)
Discussion started by: agarcia19
6 Replies
LEARN ABOUT REDHAT
fsetpos
FSEEK(3) Linux Programmer's Manual FSEEK(3)
NAME
fgetpos, fseek, fsetpos, ftell, rewind - reposition a stream
SYNOPSIS
#include <stdio.h>
int fseek(FILE *stream, long offset, int whence);
long ftell(FILE *stream);
void rewind(FILE *stream);
int fgetpos(FILE *stream, fpos_t *pos);
int fsetpos(FILE *stream, fpos_t *pos);
DESCRIPTION
The fseek function sets the file position indicator for the stream pointed to by stream. The new position, measured in bytes, is obtained
by adding offset bytes to the position specified by whence. If whence is set to SEEK_SET, SEEK_CUR, or SEEK_END, the offset is relative to
the start of the file, the current position indicator, or end-of-file, respectively. A successful call to the fseek function clears the
end-of-file indicator for the stream and undoes any effects of the ungetc(3) function on the same stream.
The ftell function obtains the current value of the file position indicator for the stream pointed to by stream.
The rewind function sets the file position indicator for the stream pointed to by stream to the beginning of the file. It is equivalent
to:
(void)fseek(stream, 0L, SEEK_SET)
except that the error indicator for the stream is also cleared (see clearerr(3)).
The fgetpos and fsetpos functions are alternate interfaces equivalent to ftell and fseek (with whence set to SEEK_SET), setting and storing
the current value of the file offset into or from the object referenced by pos. On some non-UNIX systems an fpos_t object may be a complex
object and these routines may be the only way to portably reposition a text stream.
RETURN VALUE
The rewind function returns no value. Upon successful completion, fgetpos, fseek, fsetpos return 0, and ftell returns the current offset.
Otherwise, -1 is returned and the global variable errno is set to indicate the error.
ERRORS
EBADF The stream specified is not a seekable stream.
EINVAL The whence argument to fseek was not SEEK_SET, SEEK_END, or SEEK_CUR.
The function fgetpos, fseek, fsetpos, and ftell may also fail and set errno for any of the errors specified for the routines fflush(3),
fstat(2), lseek(2), and malloc(3).
CONFORMING TO
The fgetpos, fsetpos, fseek, ftell, and rewind functions conform to ANSI X3.159-1989 (``ANSI C'').
SEE ALSO
lseek(2), fseeko(3)
BSD MANPAGE
1993-11-29 FSEEK(3)