Hirdetés

Új hozzászólás Aktív témák

  • nimfas

    addikt

    válasz vargalex #9241 üzenetére

    jaj bocs... ott van csak nem írtam ide a forumba:D

    most kerestem másik scriptet.... ez az:

    #!/bin/bash
    #
    # Simple extraction script for torrents with compressed files.

    # Directory to store the un-compressed files in.
    DEST_DIR="${/mnt/hdd/downloads/unpacked}/${TR_TORRENT_NAME}"
    # Source directory, should not be changed.
    SRC_DIR="${TR_TORRENT_DIR}/${TR_TORRENT_NAME}"
    # Log file, file where we tell what files have been processed.
    LOG_FILE="/var/log/unpacks.log"
    # Get current time
    RUN_AT=$(date +"%F %T")

    if [ -d "${SRC_DIR}" ]; then
    find "${SRC_DIR}" -iname "*.rar" -execdir unrar e -inul -o+ -kb '{}' "${DEST_DIR}" \; -printf "${RUN_AT}: Unpacked %f into %H\n" , -iname "*.zip" -execdir unzip -qq -o '{}' -d "${DEST_DIR}" \; -printf "${RUN_AT}: Unpacked %f into %H\n" >> "${LOG_FILE}"
    fi

    a kiemelt sor jó így, ha az a cél könyvtár?

Új hozzászólás Aktív témák