【发布时间】:2018-10-14 10:47:12
【问题描述】:
我正在将两个文件复制到 Google Cloud Storage (GCS) 中。当我从 informatica 运行脚本时出现错误,但是当我从 unix 运行相同的脚本时,它工作正常。
以下是来自 GitHub 的链接,其中讨论了类似问题。我不明白这是什么问题。
问候, 斯里坎特
------------部分脚本-------- ----
回显“$LFS_File_Path/$File_Name”;
gsutil cp "$LFS_File_Path/$File_Name" $GCS_Path;
if [[ $? -eq 0 ]]; then
echo "copy to GCS success for LFS Data File";
else
echo "copy to GCS Failed for LFS" >> $Log_File_Path/$Workflow_Name.txt ;
exit 1
fi
回显“$LFS_File_Path/$Del_File_Name”;
gsutil cp "$LFS_File_Path/$Del_File_Name" $GCS_Path;
如果 [[ $? -eq 0 ]];然后 echo "LFS 删除数据文件复制到 GCS 成功"; 别的 echo "LFS 复制到 GCS 失败" >> $Log_File_Path/$Workflow_Name.txt ; 1号出口 菲
------------部分脚本-------- ----
错误:-
CommandException:没有匹配的 URL:/opt/u01/app/informatica/server/infa_shared/TgtFiles/BQ_RT/DW_ORDER_HEADER_DEL.csv
类似的话题:-
【问题讨论】:
标签: batch-file google-cloud-storage