my $file = "/mnt/adtest/qa1/file1"; my $writeline = "# $test->{currentuser} wrote timestamp " . time(); my $command = "echo $writeline >> $file"; my $output = `$command 2>&1`;