Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tar script

Status
Not open for further replies.

luan100

IS-IT--Management
Dec 6, 2002
6
US
I am running a script on HP 11i to tar some directories into tape:
#!/bin/ksh
mt -f /dev/rmt/0m rew
tar -cvf /dev/rmt/0m /usr /opt /db2 1>/dev/null 2>/tmp/tar.err

but look like all output go to /tmp/tar.err that I expected that only errors.
# vi /tmp/tar.err
a /usr/bin/mediainit 64 blocks
a /usr/bin/basename 24 blocks
a /usr/bin/chgrp 40 blocks
a /usr/bin/cmp 40 blocks
a /usr/bin/cp 56 blocks
a /usr/bin/cut 40 blocks
....

Anybody knows why? Thank you.
 
Try taking out the "v" verbose.
i.e.
tar -cf /dev/rmt/0m /usr /opt /db2 1>/dev/null 2>/tmp/tar.err

The "2" or "stdout" is listing all files/block sizes you are tar'ing.
~jdk
 
Whoops make that "2" "stderr"

ZZZzzzzzzz
~jdk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top