我正在使用linux shell腳本(Debian)爲了創建某些目錄的備份。 它已經工作了一個目錄: #!/bin/bash
DIRNAME="directory1"
# This is the backup
tar cfv "_backups/NEW.tar" $DIRNAME > /dev/null 2>&1
...
# This is the restore
rm -rf
我可能在這裏錯過了一些非常簡單的東西,但是我在構建運行bash shell腳本的automator服務時遇到了問題。當插入到shell中時,腳本的所有元素都可以正常工作,但由於某種原因automator服務無法運行。該腳本調用的ffmpeg從取景器轉換傳遞給它的音頻文件: for f in "[email protected]"
do
fn="${f%%.*}"
下面是我的腳本的主要部分,它通過SQL * Plus與Oracle數據庫進行交互。 #--------------- Now connecting to sqlplus
`$SQLPLUS \@${basePath}/VoucherQuery.sql $startdate> ${basePath}/logs/QueryResult.$currentDate.log`;
i