I am stupid

I am trying to tar file to a local tape drive using tar cf /dev/rmt/0cn ./directory

The process appears to run and I can see activity on the tape drive, but, then I use tar t /dev/rmt/0cn but I do not see anything there.

I am running Solaris 8 on a 420R.

i dont see any option for a -t in tar.

did you mean to type
$tar -xvf /dev/rmt/0cn .

NAME
     tar - create tape archives and add or extract files

SYNOPSIS
     tar c  [ bBeEfFhiklnopPqvwX  [ 0-7 ]  ]  [ block ]   [  tar-
     file  ]   [ exclude-file ]  {-I include-file  | -C directory
     | file  | file }  ...

     tar r   [  bBeEfFhiklnqvw   [  0-7  ]   ]   [  block  ]   {-
     I include-file  | -C directory  | file  | file }  ...

     tar t  [ BefFhiklnqvX  [ 0-7 ]  ]  [ tarfile ]   [  exclude-
     file ]  {-I include-file  | file }  ...

     tar u  [ bBeEfFhiklnqvw  [ 0-7 ]  ]  [ block ]  [ tarfile  ]
     file ...

     tar x  [ BefFhiklmnopqvwX  [  0-7  ]   ]   [  tarfile  ]   [
     exclude-file ]  [ file ... ]

'tar -t' gives a table of contents of the tar file.

CoreyH -- Try this syntax:

tar -tvf /dev/rmt/0cn

Hi
I also use the same command tar -cvf /dev/rmt/0 to backup files on the tape drive and use the command tar -tvf /dev/rmt/0 to list the contents of the tar file. It works fine and has never given me problems
:slight_smile:

thanks pxt

ok ok im blind!!!!!!!!!!!!!!!!!!!!!!!!!

-2 karma for me

Yeah but you hit <A HREF="http://directory.google.com/Top/Arts/Literature/Authors/A/Adams,_Douglas/Hitchhiker's_Guide_to_the_Galaxy/">42</A> posts, so you must be doing something right... :cool: