Commit 1705e0510230b6aedfc8a501d4ea6346646be650

Authored by Paulo Graça
1 parent 033270dfe3

Send stderror and stdout to the same file

dspace/bin/RCAAP-packager-export_verify-items.sh
... ... @@ -79,7 +79,7 @@ fi
79 79 NUMBER_ITEMS=(`echo "SELECT count(*) FROM item WHERE in_archive=TRUE AND discoverable=TRUE;" | psql -tU postgres dspace|sed 's| ||g'`)
80 80  
81 81 #export AIP packages
82   -${SCRIPTPATH}/dspace packager -d -a -u -t AIP -e ${EMAIL} -i ${HANDLE_PREFIX}/0 ${BACKUP_DIR}/sitewide-aip.zip>${LOG_FILE}
  82 +${SCRIPTPATH}/dspace packager -d -a -u -t AIP -e ${EMAIL} -i ${HANDLE_PREFIX}/0 ${BACKUP_DIR}/sitewide-aip.zip &> ${LOG_FILE}
83 83  
84 84 #find on the backup directory and count the number of just created files
85 85 NUMBER_BACKUPS=(`find $BACKUP_DIR -mtime 0 ! -size 0 -type f -name "ITEM*.zip" | wc -l`)
... ...