Amazon S3 | s3cmd console tool

Do some setup stuff: s3cmd –configure HINTS: When you are asked for the s3 endpoint, use your hosts (canonical) address YOURHOST instead of When asked for DNS-style bucket+hostname:port don’t use the suggested %(bucket)s.YOURHOST. Instead specify your bucket like YOURBUCKETs.YOURHOST. Mind the ‘s’ appended to YOURBUCKET! Your credentials and settings will be stored in .s3cmd. […]

OpenBSD | newsyslog | postrotate command

Your daemon doesn’t write to his logfile after rotating log using newsyslog? You are executing a postrotate command in newsyslog.conf? The reason for this strange behaviour is that in case of executing a postrate command per definition (rtfm newsyslog.conf) no SIGHUP will be sent to syslogd. Solution: execute a pkill -HUP syslogd afterwards: #/var/log/maillog 640 […]

bash – read command results into an array

read -a ARRAY <<< $(df -h /data | grep -w /data) OR read -d DELIMITER -a ARRAY <<< $(df -h /data | grep -w /data) THIS DOES NOT WORK FOR ME OR OIFS=$IFS;IFS=$’\|’;read -a ARRAY <<< “$STRING2PROCESS”;IFS=$OIFS # for delimiter ‘|’ OR BETTER (!) ARRAY=($(df -h /data | grep -w /data)) HINT —> OIFS=$IFS;IFS=$’\|’;read -a […]