10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
i have a script which needs to be run every 10 minutes.This is achieved using crontab utility,
it is checking Number of calls on a service... if number of calls are not increasing then it will stop the service else do nothing.
Now in the script, i fetch the current value in variable... (2 Replies)
Discussion started by: gauravah
2 Replies
2. SCO
Hi all
Just connected a SCSI tape drive to our ScoUnix server running Unixware 7.0.1. The ID assigned to it is 3.
When I open ArcServe it is saying that tape drive is not found and I cannot configure it.
How can I make the tape drive accessible to the system?
Thanks! (4 Replies)
Discussion started by: ramon82
4 Replies
3. Shell Programming and Scripting
Hi All,
Please can you advise on how can I initialize a variable with a line.
Suppose i want to initialize x with line redirects.www.virginatlantic.com.conf
Best Regards,
Shazin (1 Reply)
Discussion started by: Shazin
1 Replies
4. Shell Programming and Scripting
hi
can anyone tell how to initialize a file to zero (3 Replies)
Discussion started by: Satyak
3 Replies
5. HP-UX
Hello Everyone,
Has anyboby ever come across the problem when fd refuses to get initialised. I try to use mediainit command, the fd is being accessed (the fd's LIT is green for some secs) but then I get the message - "Initialize media command failed - permission denied" I checked the diskette,... (1 Reply)
Discussion started by: Andrey Malishev
1 Replies
6. Filesystems, Disks and Memory
In our HP/Unix system, our master scsi drive was bootable and our mirrored drive was non-bootable. Are any of these alternatives possible:
1) Make the non-bootable scsi drive bootable? How?
2) Create a bootable scsi drive, then copy the mirrored data to the newly created scsi drive?
I seek... (1 Reply)
Discussion started by: bfisk
1 Replies
7. SCO
I use SCO UNIX from 2 years I need a command or procedure to make all log files empty and restart all counters like lp job number
:( :confused: :( (1 Reply)
Discussion started by: sharina
1 Replies
8. UNIX for Dummies Questions & Answers
Has anyone seen this message before?
I have a DNS problem. Recently DNS has been moved to two new servers, which I can ping. I changed the /etc/resolv.conf to point to these boxes but now I get the *** Can't initialize resolver message. Any ideas? (2 Replies)
Discussion started by: korfnz
2 Replies
9. Shell Programming and Scripting
Hi, i m trying to loop a variable value, Basically i m reading variable value from an input file and using in rest of the program. Bu my problem is when i first time read value and assign to variable it works fine, but in second read it concatinate second value to first value with a LF. I want to... (2 Replies)
Discussion started by: coolbudy
2 Replies
10. Programming
I have a question about C program for Unix:
Do we have to intialize every variable before we use them in C?
I thought we have to untill I found some programs are not intialize the variable before they were used. (2 Replies)
Discussion started by: whatisthis
2 Replies
eject(1) User Commands eject(1)
NAME
eject - eject media such as CD-ROM and floppy from drive
SYNOPSIS
eject [-dflqt] [ [device | nickname]]
DESCRIPTION
The eject utility is used for those removable media devices that do not have a manual eject button, or for those that might be locked due
to, for instance, being mounted. The device may be specified by its name or by a nickname. If no device is specified, the default device is
used.
Only devices that support eject under program control respond to this command.
When eject is used on media that can only be ejected manually, it does everything except remove the media, including unmounting the file
system if it is mounted. In this case, eject displays a message that the media can now be manually ejected.
Do not physically eject media from a device that contains mounted file systems. eject automatically searches for any mounted file systems
that reside on the device, and attempts to umount them prior to ejecting the media. See mount(1M). If the unmount operation fails, eject
prints a warning message and exits. The -f option can be used to specify an eject even if the device contains mounted partitions.
If you have inserted a floppy diskette, you might need to use volcheck(1) before ejecting the media to inform the system the floppy's pres-
ence.
OPTIONS
The following options are supported:
-d Display the name of the default device to be ejected.
-f Force the device to eject even if it is busy.
-l Display paths and nicknames of ejectable devices.
-q Query to see if the media is present.
-t Issues the drive a CD-ROM tray close command.
Not all devices support this command.
OPERANDS
The following operands are supported:
device Specifies which device to eject, by the name it appears in the directory /dev.
nickname Specifies which device to eject, by its nickname as known to this command.
Volume label or device type (for example, cdrom or floppy0) can be used as a nickname.
EXAMPLES
Example 1 Ejecting Media
The following example ejects media by its volume label:
example> eject 'My Pictures'
Example 2 Ejecting a Floppy Disk
The following example ejects a floppy disk from the first floppy drive:
example> eject floppy0
EXIT STATUS
The following exit codes are returned:
0 The operation was successful or, with the -q option, the media is in the drive.
1 The operation was unsuccessful or, with the -q option, the media is not in the drive.
2 Invalid options were specified.
3 An ioctl() request failed.
4 Manually ejectable media is now okay to remove.
FILES
/dev/diskette0 default diskette file
/dev/sr0 default CD-ROM file (deprecated)
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
volcheck(1), mount(1M), rmmount(1M), ioctl(2), attributes(5)
SunOS 5.11 18 Sep 2006 eject(1)