my $cmd = "echo $abc >> log.txt"; print "cmd is $cmd\n"; system( $cmd ) == 0 or die( "Error in system() call: $?.\n" );