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.
#!/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.