我正在使用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