I am running a bash script that saves the error messages in a .txt log file, I need to save the error messages in a variable now, following example:
LOG="/home/control/log.txt"
exec 2>>$LOG
tar -zcf teste.tar.gz teste
It zips the test...
asked by
20.07.2016 / 22:48