maTTi Posted Friday at 11:42 AM Share Posted Friday at 11:42 AM #!/bin/bash DIR="/mnt/user/media/movies/MOVIE_FOLDER/" find "$DIR" -type f -name '*.mkv' | while read filepath; do docker exec MKVToolNix /usr/bin/mkvmerge -J "$filepath" done I am trying to write script that use mkvtoolnix container to process my movie files in line: docker exec MKVToolNix /usr/bin/mkvmerge -J "$filepath" i get error Quote "The file '/mnt/user/media/movies/MOVIE_FOLDER/MOVIE_FILE.mkv' could not be opened for reading: open file error.\n" i don't know why script can't read this file Quote Link to comment
Kilrah Posted Friday at 12:06 PM Share Posted Friday at 12:06 PM The command is being run inside the container, it can't directly reach the unraid filesystem. You have to map a volume and use the container path. 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.