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

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
번호 분류 제목 글쓴이 날짜 조회 추천
잡담 Ubuntu 24 가 정식출시되었습니다~~ 1 달소 2시간 전10:37 79 +1
가이드 Proxmox 설치시 [ERROR] no device with valid ISO found 해결방법 2 달소 14시간 전23:10 63 +1
정보 proxmox/debian 레포 변경사항 (N: Repository 'Debian bookworm' changed its 'non-free component' value from 'non-free' to 'non-free non-free-firmware') 1 달소 1일 전08:21 156 +1
3863 잡담
image
달소 2시간 전10:37 79 +1
3862 가이드
image
달소 14시간 전23:10 63 +1
3861 가이드
image
달소 14시간 전22:54 63 0
3860 질문
normal
감자칩 18시간 전18:56 176 0
3859 질문
image
게르노 21시간 전16:08 59 0
3858 질문
image
동도리군 1일 전12:14 82 0
3857 정보
image
달소 1일 전08:21 156 +1
3856 잡담
image
달소 1일 전07:46 270 +1
3855 가이드
image
달소 1일 전07:24 236 0
3854 질문
normal
서버구축하자 2일 전13:09 396 0
3853 질문
image
미스터빈 2일 전20:09 216 0
3852 질문
image
초보나스 3일 전08:05 260 +1
3851 질문
normal
웹서버구축관심 4일 전02:22 324 0
3850 잡담
normal
달소 4일 전23:39 214 +2
3849 질문
normal
게르노 5일 전03:11 199 0
3848 질문
image
감자칩 5일 전20:04 295 0
3847 질문
normal
ljr10 5일 전19:45 209 0
3846 질문
image
TANG 6일 전11:33 238 0
3845 질문
normal
감자칩 6일 전18:55 155 0
3844 질문
normal
숲형 24.04.19.11:21 279 0