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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exit status of cpio under sco os 5.0.x

Status
Not open for further replies.

juergenw

MIS
Aug 21, 2000
8
DE
When using the following command line under sco os 5.0.x cpio gives exist status 0 (no error) although errors occured during the backup. When doing the same under AIX 4.x cpio gives a correct exit status (<>0) back.
Does anybody know this problem?

15$ find . |cpio -ocvB > /dev/rStp0
.
.profile
.kshrc
cpio: could not open htc for reading: Permission denied (error 13)
cpio: could not open hti for reading: Permission denied (error 13)
.sh_history
10 blocks
16$ echo $?
0

AIX

$ find . |cpio -ocvB > /dev/rmt0
.
stdout
cpio: 0511-026 Cannot open taperestorecommand.
stderr
30 blocks
$ echo $?
2


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top