Command I use in qbt:
Code: Select all
sudo -H -u mpadmin /home/mpadmin/scr/amc.sh
Script:
Code: Select all
filebot -script fn:amc --output "/mnt/PDB1" --action test -non-strict --conflict auto --log-file amc.log --def movieFormat="1_Movies/{n} ({y})/{n} ({y}){' CD'+pi}{'.'+lang}" seriesFormat="2_TV Shows/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[`´‘’ʻ]/, /'/).replaceAll(/[!?.]+$/).replacePart(', Part $1')}{'.'+lang}" animeFormat="3_Anime+Cartoon/{primaryTitle}/{primaryTitle} - {sxe} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, /'/).replacePart(', Part $1')}" musicFormat="5_Music/{n}/{album+'/'}{pi.pad(2)+'. '}{artist} - {t}" clean=y unsorted=y excludeList=".excludes" "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L" plex=5qDBhGu8UmKBZTYjFxqT
Output when I execute the "script" directly in cmd (Everything seems to work fine):
-->
Code: Select all
mpadmin@wyland-s1:/mnt/root_ext/outsourcing/linux/home/sexyuser$ filebot -script fn:amc --output "/mnt/PDB1" --action test -non-strict --conflict auto --log-file amc.log --def movieFormat="1_Movies/{n} ({y})/{n} ({y}){' CD'+pi}{'.'+lang}" seriesFormat="2_TV Shows/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[`´‘’ʻ]/, /'/).replaceAll(/[!?.]+$/).replacePart(', Part $1')}{'.'+lang}" animeFormat="3_Anime+Cartoon/{primaryTitle}/{primaryTitle} - {sxe} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, /'/).replacePart(', Part $1')}" musicFormat="5_Music/{n}/{album+'/'}{pi.pad(2)+'. '}{artist} - {t}" clean=y unsorted=y excludeList=".excludes" "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L" plex=5qDBhGu8UmKBZTYjFxqT
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 2: syntax error: unexpected end of file
Locking /home/mpadmin/.filebot/logs/amc.log
Run script [fn:amc] at [Fri Oct 19 19:25:10 CEST 2018]
Parameter: movieFormat = 1_Movies/{n} ({y})/{n} ({y}){' CD'+pi}{'.'+lang}
Parameter: seriesFormat = 2_TV Shows/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[´‘’ʻ]/, /'/).replacePart(', Part ')}
Parameter: musicFormat = 5_Music/{n}/{album+'/'}{pi.pad(2)+'. '}{artist} - {t}
Parameter: clean = y
Parameter: unsorted = y
Parameter: excludeList = .excludes
Parameter: ut_dir = %F
Parameter: ut_kind = multi
Parameter: ut_title = %N
Parameter: ut_label = %L
Parameter: plex = *****
----------------------------------- <README> -----------------------------------
Dear Linux user, mpadmin,
FileBot currently only officially supports Windows 10 and macOS because these platforms make it easy to sell FileBot via their respective app stores. Unfortunately, selling software on Ubuntu, Debian, Red Hat, SUSE, Synology NAS, QNAP NAS, etc is not as easy and not really worth the effort considering the small number of users willing to support the project. This Patreon is an experiment to see how many users are willing to financially contribute towards freely available donation-supported new releases on these platforms.
Please support FileBot for Linux with a pledge of $1 per release on Patreon:
=> https://www.patreon.com/filebot
If every other Linux user were to pledge a small amount of money to the FileBot project, then you could easily fund the project ten times over. Please financially support the software you use and rely on, be it FileBot or any other tool. It's just polite, and it helps the ecosystem.
Thank you,
The FileBot Team
---------------------------------- </README> -----------------------------------
Bad ut_dir value: %F
Bad ut_title value: %N
Bad ut_label value: %L
Illegal usage: no input
Failure (°_°)
The amc.sh works somehow if I switch user on shell & then execute amc.sh (I get errror but filebot gets executed anyway)
-->
Code: Select all
mpadmin@wyland-s1:/mnt/root_ext/outsourcing/linux/home/sexyuser$ /home/mpadmin/scr/amc.sh
/home/mpadmin/scr/amc.sh: command substitution: line 1: unexpected EOF while looking for matching `''
/home/mpadmin/scr/amc.sh: command substitution: line 2: syntax error: unexpected end of file
Locking /home/mpadmin/.filebot/logs/amc.log
Run script [fn:amc] at [Fri Oct 19 19:22:22 CEST 2018]
Parameter: movieFormat = 1_Movies/{n} ({y})/{n} ({y}){' CD'+pi}{'.'+lang}
Parameter: seriesFormat = 2_TV Shows/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[´‘’ʻ]/, /'/).replacePart(', Part ')}
Parameter: musicFormat = 5_Music/{n}/{album+'/'}{pi.pad(2)+'. '}{artist} - {t}
Parameter: clean = y
Parameter: unsorted = y
Parameter: excludeList = .excludes
Parameter: ut_dir = %F
Parameter: ut_kind = multi
Parameter: ut_title = %N
Parameter: ut_label = %L
Parameter: plex = *****
----------------------------------- <README> -----------------------------------
Dear Linux user, mpadmin,
FileBot currently only officially supports Windows 10 and macOS because these platforms make it easy to sell FileBot via their respective app stores. Unfortunately, selling software on Ubuntu, Debian, Red Hat, SUSE, Synology NAS, QNAP NAS, etc is not as easy and not really worth the effort considering the small number of users willing to support the project. This Patreon is an experiment to see how many users are willing to financially contribute towards freely available donation-supported new releases on these platforms.
Please support FileBot for Linux with a pledge of $1 per release on Patreon:
=> https://www.patreon.com/filebot
If every other Linux user were to pledge a small amount of money to the FileBot project, then you could easily fund the project ten times over. Please financially support the software you use and rely on, be it FileBot or any other tool. It's just polite, and it helps the ecosystem.
Thank you,
The FileBot Team
---------------------------------- </README> -----------------------------------
Bad ut_dir value: %F
Bad ut_title value: %N
Bad ut_label value: %L
Illegal usage: no input
Failure (°_°)
When I execute it from a different user with "sudo -H -u mpadmin /home/mpadmin/scr/amc.sh" nothing works anymore:
Code: Select all
/home/mpadmin/scr/amc.sh: 1: /home/mpadmin/scr/amc.sh: Syntax error: Unterminated quoted string
I did read the link you postet. But I really don't see the solution to the problem...