0
我正在處理某個文件,所以結果可以是任何一種方式。日誌記錄unix「cp」(複製)命令響應
例如:
>cp -R bin/*.ksh ../backup/
>cp bin/file.sh ../backup/bin/
當我執行上述命令,其得到複製。如果複製成功,系統沒有響應。如果沒有,則在終端本身cp: file.sh: No such file or directory
中輸出錯誤或響應。
現在,我想記錄錯誤消息,或者如果成功,我想將自定義消息記錄到文件中。我能怎麼做?
確實有幫助。
感謝
謝謝:)),這是我想要的東西 –