【发布时间】:2022-01-10 15:15:33
【问题描述】:
我正在尝试通过 PHP 脚本执行 rclone 命令。调用的纯文本版本如下所示:
rclone copy /media/storage/Events/01//999/001 events:testing-events-lowres/Events/01/999/001 --size-only --exclude /HiRes/* --include /Thumbs/* --include /Preview/* -P --checkers 64 --transfers 8 --config /home/admin/.config/rclone/rclone.conf -v --log-file=/www/html/admin/scripts/upload_status/001.json --use-json-log
但是当我运行它时,我错过了一堆东西并得到除以 0 的错误。
exec("rclone copy $baseDir/".$mainEventCode/".$eventCode". " events:testing-gfevents-lowres/Events/01/$mainEventCode/".$eventCode/" --size-only --exclude /HiRes/* --include /Thumbs/* --include /Preview/* -P --checkers 64 --transfers 8 --config /www/html/admin/scrips/rclone.conf -v --log-file=$directoryName/$eventCode.json --use-json-log");
我尝试了许多 / 和 " 的其他组合,但无法完全拨入。
【问题讨论】:
标签: php concatenation