ssh传输文件到z/OS并转码
Ricky
posted @ 2013年12月20日 13:29
in Other
, 1144 阅读
#! /bin/sh -x MVS_CODEPAGE=IBM-936 # adjust to taste; perhaps IBM-936 MVS_CODEPAGE=IBM-1047 # adjust to taste; perhaps IBM-936 ssh "$MVS_USER@$MVS_HOST" "set -x iconv -f $MVS_CODEPAGE -t UTF-8 '$1' | iconv -f ISO8859-1 -t IBM-1047"