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
removable-media(9P) Kernel Properties for Drivers removable-media(9P)
NAME
removable-media - removable media device property
DESCRIPTION
A device that supports removable media--such as CDROM, JAZZ, and ZIP drives--and that supports power management and expects automatic
mounting of the device via the volume manager should export the boolean (zero length) property removable-media. This property enables the
system to make the power state of the device dependent on the power state of the frame buffer and monitor. See the power.conf(4) discussion
of the device-dependency-property entry for more information.
Devices that behave like removable devices (such as PC ATA cards, where the controller and media both are removed at the same time) should
also export this property.
EXAMPLES
Example 1: removable-media Entry
An example of a removable-media entry from the .conf file of a driver is shown below.
# This entry keeps removable media from being powered down unless
# the console framebuffer and monitor are powered down
#
removable-media=1;
Example 2: Implementation in attach()
Below is an example of how the entry above would be implemented in the attach(9E) function of the driver.
xxattach(dev_info_t *dip, ddi_attach_cmd_t cmd)
{
...
if (ddi_prop_create(DDI_DEV_T_NONE, dip, DDI_PROP_CANSLEEP,
"removable-media", NULL, 0)) != DDI_PROP_SUCCESS)
goto failed;
...
}
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
power.conf(4), pm(7D), attach(9E), detach(9E), ddi_prop_create(9F)
Writing Device Drivers
SunOS 5.10 15 Jun 2001 removable-media(9P)