10-30-2009
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Following the below info:
----------------------------------------------------------------------------------
# SYNTAX: /dev/rmt/<unit number><density>
· Density: l, m, h, u/c (low, medium, high, ultra/compressed, respectively)
· BSD behavior: (optional) b
· no rewind: (optional) n
· For... (5 Replies)
Discussion started by: guest100
5 Replies
2. Solaris
hi all ,
i have just installed solris 9 on a sun 280R ,and i have appleid the recommended patches .
after the installation i have found that /dev/rmt/ directory is empty , i thought that was normal , so i attached my DDS4 external tape drive and treid :
devfsadm -C
devfsadm -v
reboot --... (1 Reply)
Discussion started by: ppass
1 Replies
3. Solaris
Hi,
We have some IBM LTO tape drives connect over SAN.
I have the following questions :-
1) Command that can list the tape drive details like who is manufacturer, model number, make etc etc
2) I would like to know what are the key differences between IBM LTO Generation 1 and Generation... (5 Replies)
Discussion started by: new2prog
5 Replies
4. Solaris
Hi Guys,
I a newbie in Unix environment. I need a help to detect my external SCSI tape drive. I tried with command drvconfig;devlinks;tapes.. but when I go to /dev/rmt/, the directory is still empty.
I also tried with add_drv -v st but I'm getting this message
# add_drv -v st
exit... (8 Replies)
Discussion started by: akuslive
8 Replies
5. AIX
Hi all,
Sometimes, when I reboot my AIX server, my tape drive /dev/rmt# assignments change. This creates some tedious TSM work prior to and after a reboot of the server.
Is there a way to ensure that the /dev/rmt# assignments come up the same every time?
Thanks (5 Replies)
Discussion started by: jwholey
5 Replies
6. Hardware
# mt stat
HP DDS-4 DAT (Sun) tape drive:
sense key(0x0)= No Additional Sense residual= 0 retries= 0
file no= 0 block no= 0
mt -f /dev/rmt/0mn erase
/dev/rmt/0mn: write protected or reserved.
Getting error while ufsdump ....
--- Dumping / to /dev/rmt/0mn ---
DUMP: Date... (1 Reply)
Discussion started by: vickyingle5
1 Replies
7. Solaris
# mt stat
HP DDS-4 DAT (Sun) tape drive:
sense key(0x0)= No Additional Sense residual= 0 retries= 0
file no= 0 block no= 0
mt -f /dev/rmt/0mn erase
/dev/rmt/0mn: write protected or reserved.
Getting error while ufsdump ....
--- Dumping / to /dev/rmt/0mn ---
DUMP: Date... (5 Replies)
Discussion started by: vickyingle5
5 Replies
8. AIX
Hello,
I attached a tape drive to one of my partitions but i cannot find the device.
I run the command lsdev|grep rmt but i dont get anything in return.
When i run lsslot -c slot i can see the slot number and the device that belongs to the tape drive but i cannot find any rmt files in /dev.... (6 Replies)
Discussion started by: omonoiatis9
6 Replies
9. SCO
Hi all,
I am facing problem with my Tape drive (hp) (/dev/rct0) on SCO Unix version 6.0.0. Sometimes tar works fine but some times it doesnot work and I have to restart the server to get it work. One reboot/shutdown is OK. to solve the problem. Error is "cannot open ... (9 Replies)
Discussion started by: dextergenious
9 Replies
10. HP-UX
Hi,
Unable to make tape backup, please help.
/opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -m tar -x inc_entire=vg00
* Creating local directories for configuration files and archive.
======= 04/25/16 16:28:08 IST Started /opt/ignite/bin/make_tape_recovery.
(Mon... (4 Replies)
Discussion started by: anuragr
4 Replies
LEARN ABOUT REDHAT
file::stat
File::stat(3pm) Perl Programmers Reference Guide File::stat(3pm)
NAME
File::stat - by-name interface to Perl's built-in stat() functions
SYNOPSIS
use File::stat;
$st = stat($file) or die "No $file: $!";
if ( ($st->mode & 0111) && $st->nlink > 1) ) {
print "$file is executable with lotsa links
";
}
use File::stat qw(:FIELDS);
stat($file) or die "No $file: $!";
if ( ($st_mode & 0111) && $st_nlink > 1) ) {
print "$file is executable with lotsa links
";
}
DESCRIPTION
This module's default exports override the core stat() and lstat() functions, replacing them with versions that return "File::stat"
objects. This object has methods that return the similarly named structure field name from the stat(2) function; namely, dev, ino, mode,
nlink, uid, gid, rdev, size, atime, mtime, ctime, blksize, and blocks.
You may also import all the structure fields directly into your namespace as regular variables using the :FIELDS import tag. (Note that
this still overrides your stat() and lstat() functions.) Access these fields as variables named with a preceding "st_" in front their
method names. Thus, "$stat_obj->dev()" corresponds to $st_dev if you import the fields.
To access this functionality without the core overrides, pass the "use" an empty import list, and then access function functions with their
full qualified names. On the other hand, the built-ins are still available via the "CORE::" pseudo-package.
BUGS
As of Perl 5.8.0 after using this module you cannot use the implicit $_ or the special filehandle "_" with stat() or lstat(), trying to do
so leads into strange errors. The workaround is for $_ to be explicit
my $stat_obj = stat $_;
and for "_" to explicitly populate the object using the unexported and undocumented populate() function with CORE::stat():
my $stat_obj = File::stat::populate(CORE::stat(_));
NOTE
While this class is currently implemented using the Class::Struct module to build a struct-like class, you shouldn't rely upon this.
AUTHOR
Tom Christiansen
perl v5.8.0 2002-06-01 File::stat(3pm)