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

How to convert CPIO between SCO and REDHAT? 1

Status
Not open for further replies.

JohnLynn

Technical User
Feb 2, 2001
38
US
I have tied numerous combinations of trying to extract a cpio file that came from a SCO 5.0.6 server to a Linux server. I have read all the man pages and can not come up with a answer. The files are always plain text log files and created by &quot;cpio -ocvB > filename.cpio < input.list&quot; .

I extract by cpio -icvBmud < filename.cpio.

the result is>>>> &quot;cpio: premature end of file&quot;.

Thanks
john
 
Use cpio -ivBmudH odc < filename.cpio.

See the man page on your Linux system and compare it to the man page on your sco box- they have differing ideas on what the default for &quot;c&quot; should be. SCO took the path that says you should be able to read old archives without using a different flag; Linux as usual decided that new is better.

As it's rather well documented in both cases, I don't think either of them are &quot;wrong&quot;.



Tony Lawrence
SCO Unix/Linux Resources tony@pcunix.com
 
Tony,

Thank you for your help. It worked as described.

I will again and again review the man pages so I understand.

Thanks,
john g. lynn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top