NZBGet docker call Filebot script on Host

Get help, report and discuss bugs.
Post Reply
mouzzampk2014
Posts: 23
Joined: 13 Feb 2019, 02:23

NZBGet docker call Filebot script on Host

Post by mouzzampk2014 » 23 Aug 2020, 10:53

Hello, need little guidance. I have nzbget running on docker and filebot installed on host. I'm unable to call filebot script because filebot is not installed in nzbget docker.

I can do this by sshpass but sshpass is not available under nzbget docker.

Could you help me out how can I call the script so filebot command will work from nzbget?

Thank you

hugbug
Developer & Admin
Posts: 7541
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: NZBGet docker call Filebot script on Host

Post by hugbug » 23 Aug 2020, 13:31

I guess you need to install sshpass into nzbget docker then.
Alternatively use nzbget directly on host.

mouzzampk2014
Posts: 23
Joined: 13 Feb 2019, 02:23

Re: NZBGet docker call Filebot script on Host

Post by mouzzampk2014 » 20 Sep 2020, 09:11

Hi, sorry for late reply. Trying to figure it out :)

I done this

Code: Select all

sshpass -p 5567 ssh -l tail 192.168.1.56 "df -h"
and I am not getting any output. I hope you have some solution like always :)

Code: Select all

root@tail:/# sshpass -p 5567 ssh -l tail 192.168.1.56 "df -h"
root@tail:/# 
Let me know please if you need more information.

Thank you

mouzzampk2014
Posts: 23
Joined: 13 Feb 2019, 02:23

Re: NZBGet docker call Filebot script on Host

Post by mouzzampk2014 » 20 Sep 2020, 09:55

Just to add, I installed

Code: Select all

openssh-client
and

Code: Select all

sshpass

mouzzampk2014
Posts: 23
Joined: 13 Feb 2019, 02:23

Re: NZBGet docker call Filebot script on Host

Post by mouzzampk2014 » 20 Sep 2020, 12:21

Awesome all sorted but now I am getting this

Code: Select all

root@tail:/# sh /storage/downloads/usenet/scripts/FileBot.sh
/storage/downloads/usenet/scripts/FileBot.sh: line 14: syntax error: unexpected "("
And thats what I have

Code: Select all

#!/bin/sh -xu

#######################################
### NZBGET POST-PROCESSING SCRIPT   ###

# Trigger Filebot
#
# This is a script to trigger Filebot. It starts sorting,
# renaming and cleaning up the downloaded file.

### NZBGET POST-PROCESSING SCRIPT   ###
#######################################

sshpass -p PASSWORD ssh -o StrictHostKeyChecking=no USERNAME@192.168.1.52 filebot -script fn:amc --output "/mnt/local/disk.slab/medialibrary" --action move -non-strict "/mnt/local/disk.slab/downloads/usenet/other" --log-file amc.log --def excludeList=/mnt/local/disk.slab/downloads/amc.txt discord=https://discord.com/api/webhooks/ABS/HYUNDAI-SUZUKI clean=y movieFormat="/mnt/local/disk.slab/medialibrary/movies/{ny.colon(' - ')}/{folder.name}"

# NZBGet Exit Codes
if [ $? = 0 ]; then
	exit 93 # SUCCESS
else
	exit 94 # FAILURE
fi

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests