rendered paste bodySubject: Cron <tore@burken> /bin/sh /home/tore/scripts/torrents.sh startscreen: not foundTorrent dont seem to be running, will start.../usr/local/bin/screen: 1: Syntax error: "(" unexpected#!/bin/shMINPORT=10000MAXPORT=10020UPLOAD=30720TORRENT_DIR=/home/tore/torrents_active/SAVEDIR=/home/tore/torrents_incomplete/PARSEDIR=30SAVEAS=3TEMP=if [ $# -eq 1 ]; then TEMP=10elif [ $# -eq 0 ]; then # ingen args er gitt echo "Usage: { start {uploadRate} | stop }" exitelse if [ $1 = "start" ]; then UPLOAD=$1 fificase "$1" in start) if [ $(screen -list | grep torrentDownload | awk -F. '{print $1}' | wc -l) -eq 0 ]; then echo "Torrent dont seem to be running, will start..." /bin/sh /usr/local/bin/screen -d -m -S torrentDownload /usr/local/bin/launchmany-curses \ --minport $MINPORT \ --maxport $MAXPORT \ --max_upload_rate $UPLOAD \ --max_files_open 200 \ --save_in $SAVEDIR \ --parse_dir_interval $PARSEDIR \ --saveas_style $SAVEAS \ --torrent_dir $TORRENT_DIR \ --no_display_path exit else echo "Torrent SEEMS to be running..." exit fi ;; stop) if [ $(screen -list | grep torrentDownload | awk -F. '{print $1}' | wc -l) -eq 0 ]; then echo "Torrent dont seem to be running" exit else kill $(screen -list | grep torrentDownload | awk -F. '{print $1}') if [ $? -eq 0 ]; then echo "Torrent properly killed" else echo "Torrent NOT properly killed" fi exit fi ;; *) echo "Usage: { start {uploadRate} | stop }" ;;esac