Bashscript ending without errors (Videosort)

Share your scripts or request scripts with specific features.
Forum rules
Please keep the forum clean - one topic per script. Questions not related to a specific script should be posted in Support forum.
Post Reply
asselnik
Posts: 13
Joined: 11 Nov 2015, 08:01

Bashscript ending without errors (Videosort)

Post by asselnik » 26 Nov 2015, 09:20

Hello,
i have write a small bash-sript to sort my downloaded videos:

Code: Select all

#!/bin/bash
#
# Sort Films
#


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

# Filme verschieben in Downloads
#

##############################################################################
### OPTIONS                                                                   ###

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

/opt/bin/find "/share/Download/nzbget/dst" -type f -name "*.mkv" -exec mv {} "/share/Recordings/" \;
/opt/bin/find "/share/Download/nzbget/dst" -type f -name "*.mov" -exec mv {} "/share/Recordings/" \;
/opt/bin/find "/share/Download/nzbget/dst" -type f -name "*.avi" -exec mv {} "/share/Recordings/" \;
/opt/bin/find "/share/Download/nzbget/dst" -type f -name "*.mpg" -exec mv {} "/share/Recordings/" \;
/opt/bin/find "/share/Download/nzbget/dst" -type f -name "*.mpeg" -exec mv {} "/share/Recordings/" \;
rm -r /share/Download/nzbget/dst/*

The Script is working perfekt, but in the end, i become an error in NZBGET:

"Post-process-script Filme.py for NAME failed (terminated with unknown status)"

What can i put in the Bash-Script to output without error?

Thanks.

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

Re: Bashscript ending without errors (Videosort)

Post by hugbug » 26 Nov 2015, 10:55


asselnik
Posts: 13
Joined: 11 Nov 2015, 08:01

Re: Bashscript ending without errors (Videosort)

Post by asselnik » 26 Nov 2015, 15:05

Perfect, thanks a lot!

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests