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

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
번호 제목 글쓴이 날짜 조회 추천
iventoy pxe는 속도가 엄청 느리군요.. nohdd는 왜 빠르지.. 음... purndal 22시간 전00:52 130 +2
proxmox로 갈아탔습니다 7 기현 2일 전07:34 403 +2
Immich가 FUTO에 합류했습니다.(Immich 핵심 팀은 정규직으로 근무합니다.) 4 달소 3일 전11:38 305 +1
3704
image
kmw_ 3시간 전19:26 123 0
3703
image
ljr10 4시간 전18:44 112 0
3702
image
ljr10 10시간 전12:45 107 0
3701
image
purndal 22시간 전00:52 131 +2
3700
normal
스키피95 1일 전00:07 109 0
3699
normal
고심분투 2일 전17:10 185 0
3698
image
기현 2일 전07:34 403 +2
3697
image
keiminem 3일 전13:12 498 0
3696
normal
달소 3일 전11:38 305 +1
3695
normal
홍익 4일 전19:26 221 0
3694
image
지딱코 4일 전14:31 231 +1
3693
image
달소 5일 전22:22 386 +3
3692
image
ljr10 5일 전08:20 178 0
3691
image
달소 5일 전06:46 197 +1
3690
image
달소 5일 전05:50 230 +6
3689
image
달소 5일 전05:38 134 0
3688
image
달소 5일 전05:20 440 0
3687
image
keiminem 6일 전17:43 379 +3
3686
normal
purndal 6일 전14:32 244 0
3685
image
초보나스 6일 전10:46 109 0