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...
Your right with your suggestion, Gary. I want to have stderr messages in one logfile because it's much more easy if a customer has backup problems to have just one look in one errorlog file than having a look through complete stdout (2>&1) of the backup. And with several hundreds of unix-servers...
ok. I haven't used pax before, but after having an eye on several manuals it seems to me, that pax is not able to backup a list of files coming from an find f.e.
find . \( \! -name "*.d*" \! -name "*.b*" \! -name "*.lk" \! -name "
lbi*" \! -name...
Thank you but it doesn't work,
I asume syntax ">& /file/for/stderr" is for csh/tcsh (see http://www.ifa.au.dk/prot/computer/ifacm/sec311.htm).
So I changed it as discribed to "prog > file 2>&1" for ksh.
( find . | cpio -ocvB > /dev/rmt0 > /usr1/jwt/stdout) > /usr1/jwt/stderr...
Thank your for answering, but it doesn't work.
Here's what happens: After the start of the cpio no output is displayed on the screen. Although an error should occur (uid of file htpr > 65535), file stderr is empty and the content of file stdout is not just, what normally is displayed from cpio...
Hello,
I try to catch stderr and stdout from the cpio command (AIX 4.1.5.0 and sco openserver 5.0.5).
When trying
find . -print | cpio -ocvB > /dev/rmt0 2>errorlog
cpio using the verbose mode and put stderr in errlog file no displays of the cpio are made on the screen but in the errorlog file...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.