Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

script help

Featured Replies

trying to put in a simple unrar script on my unraid server.

#!/bin/bash
#
# Script to unpack tv downloads using unrar.
# assumed that tv downloads are in their own directory.
#
#

LOG_DIR="/mnt/cache/.torrents/log"
LOG_FILE="unrarscript.log"
TMPLOG="$(mktemp)" || return

echo -e "---------------------------------------------------------------------------" > $TMPLOG # restart temp log file.
echo -e "[ `date` ] Post download Script started..." >> $TMPLOG
echo -e "<BR>" >> $TMPLOG
echo -e "Extracting tv shows from archives..." >> $TMPLOG

cd /mnt/cache/.torrents/downloads/tv

# execute unrar command.
unrar e -r -o- *.rar >> $TMPLOG

echo -e "[ `date` ] Post download Script complete." >> $TMPLOG
echo -e "---------------------------------------------------------------------------" >> $TMPLOG # complete log file.

# Mail $TMPLOG to root
mail -s "Subject: UnRAR" root < $TMPLOG

# Append temp log to log file
echo $TMPLOG >> /mnt/cache/.torrents/log/tvunrarlog.log

 

returns bad method ^M errors. using ViM editor.

in the editor, type

:set list

then delete the carriage-returns you have at the ends of the lines and save the file.  (they will be visible as "^M")

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.