We are facing issue when trying to unarchive file(tar.bz2) in case when archival is not done in zopen environment(USS).
Steps to Reproduce:
1.Create two file Test1.txt and Test2.txt in local mac environment.
2.Archive it using command below:
yrana@Yogeshs-MacBook-Pro ~ % /opt/homebrew/bin/gtar -cjvf unarchive_tar_bzip2.tar.bz2 Test1.txt Test2.txt
Test1.txt
Test2.txt
yrana@Yogeshs-MacBook-Pro ~ % ls -laT unarchive_tar_bzip2.tar.bz2
-rw-r--r-- 1 yrana staff 449 Apr 22 14:58:33 2025 unarchive_tar_bzip2.tar.bz2
3.SFTP transfer unarchive_tar_bzip2.tar.bz2 to USS machine.
yrana@Yogeshs-MacBook-Pro ~ % sftp OMVSADM@EC01242A.vmec.svl.ibm.com
Connected to EC01242A.vmec.svl.ibm.com.
sftp> put /Users/yrana/unarchive_tar_bzip2.tar.bz2 /tmp/testUnarchivalBzip2/
Uploading /Users/yrana/unarchive_tar_bzip2.tar.bz2 to /tmp/testUnarchivalBzip2/unarchive_tar_bzip2.tar.bz2
unarchive_tar_bzip2.tar.bz2 100% 449 1.5KB/s 00:00
sftp> exit
4.Unarchive using below command:
/zopen/usr/local/bin/gtar -xvjf unarchive_tar_bzip2.tar.bz2
Error Message:
bash-4.3# /zopen/usr/local/bin/gtar -xvjf unarchive_tar_bzip2.tar.bz2
bzip2: (stdin) is not a bzip2 file.
/zopen/usr/local/bin/gtar: Child returned status 2
/zopen/usr/local/bin/gtar: Error is not recoverable: exiting now
Thanks!!
We are facing issue when trying to unarchive file(tar.bz2) in case when archival is not done in zopen environment(USS).
Steps to Reproduce:
1.Create two file Test1.txt and Test2.txt in local mac environment.
2.Archive it using command below:
3.SFTP transfer unarchive_tar_bzip2.tar.bz2 to USS machine.
4.Unarchive using below command:
/zopen/usr/local/bin/gtar -xvjf unarchive_tar_bzip2.tar.bz2Error Message:
bash-4.3# /zopen/usr/local/bin/gtar -xvjf unarchive_tar_bzip2.tar.bz2
bzip2: (stdin) is not a bzip2 file.
/zopen/usr/local/bin/gtar: Child returned status 2
/zopen/usr/local/bin/gtar: Error is not recoverable: exiting now
Thanks!!