완료된 다운로드를 aria2c의 디렉토리에 배치하는 방법은 무엇입니까?

완료된 다운로드를 aria2c의 디렉토리에 배치하는 방법은 무엇입니까?
alias download='while true; do timeout -s 9 1260 aria2c *.torrent --lowest-speed-limit=1024 --disable-ipv6=true --seed-time=0 --max-connection-per-server=6 --enable-rpc=false; sleep 1; done'
alias seed='aria2c --check-integrity=false --bt-seed-unverified=true --lowest-speed-limit=1024 --disable-ipv6=true --max-connection-per-server=6 -d . *.torrent --seed-time=999999 --seed-ratio=999999.0'

그래서 저는 aria2에서 이러한 별칭을 사용하여 토렌트 파일을 다운로드합니다. 질문이 하나뿐입니다. 완료된 다운로드를 디렉토리에 넣는 방법은 무엇입니까? ("다운로드" 별칭 사용)

ps: "다운로드" 별칭의 "사실일 때..."는 다운로드가 "느리게" 되기 때문입니다... 잠시 후 aria2c를 다시 시작해야 합니다 :D

답변1

이것메모BT의 작동 방식을 고려하면* 이는 좋지 않은 생각이지만 적절한 조치라고 생각합니다.이벤트 훅트릭을 수행하려면 어떻게해야합니까?

매개변수를 명령에 전달하는 방법의 예를 살펴보겠습니다.

$ cat hook.sh
#!/bin/sh
echo "Called with [$1] [$2] [$3]"
$ aria2c --on-download-complete hook.sh http://example.org/file.iso
Called with [1] [1] [/path/to/file.iso]

이것--seed-time--seed-ratio옵션많은 사용 사례도 자동화할 수 있습니다.

(*당신의 것을 확인하는 것이 좋습니다설정BitTorrent에서 읽어보세요)

관련 정보