Oamster

Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Oamster's Achievements

Noob

Noob (1/14)

0

Reputation

  1. Is there a way I can easily run this as a cron job in userscripts? Tried doing it with just the command but it errors. EDIT Or how would you put this in the mover tuning plugin to run this after each time the mover runs? EDIT2 Disregard! Figured it out, added it to user scripts and pointed mover tuning to: /tmp/user.scripts/tmpScripts/script_name/script Now it will run the consld8 script after every time the mover runs.
  2. Has anyone tried to make a script that consolidated files that were scattered across different disks? For example, I had tv shows, music and movies in a "media" share (Media/TV/Shows/Show_name/Season_X/file, Media/TV/Anime/Anime_name/Season_X/file, Media/Movies/Movie_name/file. My split level kept all the episodes of a season together on a single disk. My issue was the movie subtitles were being downloaded and split onto whatever disk had the space, sometimes having more than one drive spin up to access the movie and the subtitles. Tried using ChatGPT to help with a script and this is what it came up with: #!/bin/bash # Set the path to your movie directory MOVIE_DIR="/mnt/user/Movies" # Find all movie files and loop through them find "$MOVIE_DIR" -type f \( -iname "*.mkv" -o -iname "*.mp4" -o -iname "*.avi" \) -print0 | while IFS= read -r -d '' movie; do movie_dir=$(dirname "$movie") movie_name=$(basename "$movie") movie_name="${movie_name%.*}" # Find the corresponding .srt file srt_file=$(find "$movie_dir" -type f -iname "$movie_name.srt" -print -quit) # Move the .srt file to the same directory as the movie file if [ -n "$srt_file" ]; then mv "$srt_file" "$movie_dir" echo "Moved $srt_file to $movie_dir" fi done
  3. Hey all, First time running a "cumulative parity check", have it set to run on the first day of the month for 6 hours a day until completed. On 7/1 it ran for 17+ hours until completion. thevault-diagnostics-20220703-1021.zip