( calamari | 2015. 10. 15., cs – 17:44 )

Egy ilyet tuti megpróbálnék:

#!/bin/bash
set -x
{
volume=`echo "list volumes" | bconsole|grep -i "Append\|Full"|awk '{print $4}'`
echo "purge volume=$volume yes" | bconsole
} >/tmp/debug.out 2>&1

♲♻♲