my $command = "command1 | command 2"; exec $command or die "Error in exec: $!\n";