diff --git a/autopost/posteur.sh b/autopost/posteur.sh index 9b2421f..56d2f92 100644 --- a/autopost/posteur.sh +++ b/autopost/posteur.sh @@ -58,12 +58,18 @@ while true; do { echo -e "${VERT}UPLOAD SUR USENET${NORMAL}" + files=( ${FILESANSEXT}.* ) checkusenet - nyuu -h ${NG_HOST} -P ${NG_PORT} -S -u ${NG_USER} -p ${NG_PASS} -n ${NG_NBR_CONN} \ - -g alt.binaries.boneless -o "${DOSSIER_NZB_ATTENTE}${FILESANSEXT}.nzb" \ - --nzb-title "${FILESANSEXT}" -f "{rand(14)} {rand(14)}@{rand(5)}.{rand(3)}" \ - --message-id "{rand(32)}@{rand(8)}.{rand(3)}" \ - --subject "{rand(32)}" --nzb-subject "{filename}" --obfuscate-articles ${FILESANSEXT}.* + script -q -c \ + "nyuu -h ${NG_HOST} -P ${NG_PORT} -S -u ${NG_USER} -p ${NG_PASS} -n ${NG_NBR_CONN} \ + -g alt.binaries.boneless -o '${DOSSIER_NZB_ATTENTE}${FILESANSEXT}.nzb' \ + --nzb-title '${FILESANSEXT}' \ + -f '{rand(14)} {rand(14)}@{rand(5)}.{rand(3)}' \ + --message-id '{rand(32)}@{rand(8)}.{rand(3)}' \ + --subject '{rand(32)}' --nzb-subject '{filename}' \ + --obfuscate-articles ${files[*]} \ + --progress=stderr" \ + /dev/null if [ -e "${DOSSIER_NFO}${FILESANSEXT}.json" ] || [ -e "${DOSSIER_NFO}${FILESANSEXT}.txt" ]; then echo -e "${JAUNE}VERIF DU NZB${NORMAL}" @@ -110,7 +116,7 @@ while true; do else echo -e "${ROUGE}ENVOI SUR LE SITE IMPOSSIBLE NFO MANQUANT${NORMAL}" fi - } > >(tee -a "$LOG") 2>&1 + } 2>&1 | tee -a "$LOG" fi else echo -e "${ROUGE}PROBLEME DE PROPAGATION POST EN PAUSE${NORMAL}"