• 돌아가기
  • 아래로
  • 위로
  • 목록
  • 댓글
잡담

chatGPT 코딩 실력

똥쓰똥쓰 497

0

4

아래 Rclone 마운트 스크립트를 좀 튜닝해 달라고 했는데 이렇게 해줬는데

맞는 표현 이겠죠? AI 정말 대단합니다....

 

can you give me fine-tuning of below bash script? 

 

#!/bin/bash

sleep 30

sudo mount --make-shared /volume2

 

#mount GD
sudo rclone mount GD: /volume2/mount/GD --config /root/.config/rclone/rclone.conf --allow-other --allow-non-empty --fast-list --drive-skip-gdocs --poll-interval=15s --vfs-cache-mode full --vfs-write-back 5s --bwlimit-file 16M --buffer-size=16M --vfs-read-chunk-size=32M --vfs-read-chunk-size-limit 2048M --vfs-cache-max-size 100G --vfs-cache-max-age 336h --vfs-read-ahead 32M --dir-cache-time=1000h --log-level INFO --log-file /volume2/mount/rclone/Log/rclone_GD.log --cache-dir=/volume2/mount/rclone/Cache --timeout 1h --umask 000 &
sudo rclone mount GD.Share.Movie: /volume2/mount/GD.Share/GD.Share.Movie --config /root/.config/rclone/rclone.conf --allow-other --allow-non-empty --fast-list --drive-skip-gdocs --poll-interval=15s --vfs-cache-mode full --vfs-write-back 5s --bwlimit-file 16M --buffer-size=16M --vfs-read-chunk-size=32M --vfs-read-chunk-size-limit 2048M --vfs-cache-max-size 100G --vfs-cache-max-age 336h --vfs-read-ahead 32M --dir-cache-time=1000h --log-level INFO --log-file /volume2/mount/rclone/Log/rclone_GD_Share_Movie.log --cache-dir=/volume2/mount/rclone/Cache --timeout 1h --umask 000 &

 

[chatGPT 답변]

 

Here's a refined version of the script:

 

#!/bin/bash

 

sleep 30

 

sudo mount --make-shared /volume2

 

declare -a mount_list=(

"GD: /volume2/mount/GD"

"GD.Share.Movie: /volume2/mount/GD.Share/GD.Share.Movie" 

...

)

 

for mount in "${mount_list[@]}"; do

IFS=':' read src dest <<< "$mount"

sudo rclone mount "$src": "$dest"
--config /root/.config/rclone/rclone.conf
--allow-other
--allow-non-empty
--fast-list
--drive-skip-gdocs
--poll-interval=15s
--vfs-cache-mode full
--vfs-write-back 5s
--bwlimit-file 16M
--buffer-size=16M
--vfs-read-chunk-size=32M
--vfs-read-chunk-size-limit 2048M
--vfs-cache-max-size 100G
--vfs-cache-max-age 336h
--vfs-read-ahead 32M
--dir-cache-time=1000h
--log-level INFO
--log-file "/volume2/mount/rclone/Log/rclone_$src.log"
--cache-dir=/volume2/mount/rclone/Cache
--timeout 1h
--umask 000 &

done

신고공유스크랩
4
profile image 3등
하늘위의하늘 2023.02.07. 22:07
Ms가 github 인수하고 이러닝을 그것을 통해서 하고있지 않나생각합니다. ㅎㅎ
게임 회사도 인수했으니 메타버스로 가나요?
ㅎㅎ

댓글 쓰기 권한이 없습니다. 로그인

취소 댓글 등록

cmt alert

신고

"님의 댓글"

이 댓글을 신고하시겠습니까?

댓글 삭제

"님의 댓글"

삭제하시겠습니까?


목록

공유

facebooktwitterpinterestbandkakao story
번호 분류 제목 글쓴이 날짜 조회 추천
잡담 jellyfin 자원 진짜 안쓰네요 kmw_ 14시간 전19:26 234 +1
잡담 iventoy pxe는 속도가 엄청 느리군요.. nohdd는 왜 빠르지.. 음... purndal 1일 전00:52 150 +2
잡담 proxmox로 갈아탔습니다 7 기현 3일 전07:34 419 +2
3899
image
달소 21.06.22.13:19 19484 0
3898
image
달소 22.03.17.22:09 19071 +14
3897
image
달소 20.12.25.17:18 16228 +5
3896
image
달소 23.01.27.14:15 16149 +8
3895
image
달소 21.01.02.13:32 8169 0
3894
image
달소 21.04.28.14:05 8125 +6
3893
image
똥쓰똥쓰 22.09.24.16:54 8014 +3
3892 정보
image
달소 21.05.06.11:38 7928 +4
3891
image
달소 21.02.26.15:02 7680 +1
3890
image
달소 21.07.30.17:12 7081 +4
3889
image
달소 22.03.17.23:40 7076 +2
3888 정보
image
달소 21.06.11.13:24 6949 +4
3887 질문
image
달소 21.04.23.12:51 6128 +3
3886
image
ExpBox 22.04.16.23:19 5915 +4
3885 정보
image
달소 22.05.06.13:12 5889 +3
3884
image
에프킬라 22.04.19.22:08 5881 +6
3883
image
달소 21.07.30.11:40 5743 +1
3882 정보
image
달소 21.10.21.17:59 5606 +3
3881
image
달소 23.04.09.14:13 5196 +4
3880
image
달소 22.03.17.22:25 5093 +10