script nem felel meg a celra? script -c 'sudo blah' logfile (Correction: AIX-en nincs -c, de ott is biztos meg lehet oldani valahogy ugyanezt)