1834150 Members
2479 Online
110064 Solutions
New Discussion

tcopy?

 
Gary Ullery
New Member

tcopy?

Is there an equivalent to tcopy on HP-UX?
5 REPLIES 5
Justo Exposito
Esteemed Contributor

Re: tcopy?

Hi Gary,

I don't know tcopy, but can you describe the funcionality of tcopy?

Regards,

Justo.
Help is a Beatiful word
Gary Ullery
New Member

Re: tcopy?

No problem. Here is the description of tcopy:
DESCRIPTION
tcopy copies the magnetic tape mounted on the tape drive specified by the source argument. The only assumption made about the contents of a tape is that there are two tape marks at the end.

When only a source drive is specified, tcopy scans the tape, and displays information about the sizes of records and tape files. If a destination is specified, tcopy makes a copies the source tape onto the destination tape, with blocking preserved. As it copies, tcopy produces the same output as it does when only scanning a tape.
Kofi ARTHIABAH
Honored Contributor

Re: tcopy?

if you just want to make a copy of a tape, you can use
dd
or check this thread out:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x1693abe92dabd5118ff10090279cd0f9,00.html

good luck.
PS. It would help if you say what you want to achieve
nothing wrong with me that a few lines of code cannot fix!
Gary Ullery
New Member

Re: tcopy?

Kofi, point well taken about what exactly I am looking for.

I am interested in the displaying of the information about the sizes of records and tape files, as opposed to making copies of the tape. This is rather easy to do with tcopy. Here is a sample output of tcopy:
# tcopy /dev/rmt/0cbn
file 1: record 1: size 1024
file 1: eof after 1 records: 1024 bytes
file 2: record 1: size 1024
file 2: records 2 to 1553: size 32768
file 2: eof after 1553 records: 50856960 bytes
file 3: record 1: size 1024.... and so on

Thanks for any and all information. I will be more direct in my requests!
Justo Exposito
Esteemed Contributor

Re: tcopy?

Hi Gary,

If you use the tar or cpio command to make the tape, you can use the same command with the "-t" option to see the contenent of the tape.

You can view information on that commands and options in the man pages for this commands.

Hope this help you,

Justo.
Help is a Beatiful word