command="mvn clean verify > /tmp/out"The redirect greater-than sign was being passed to the mvn command. Placing an eval in front of the mvn command does the trick:
$command
command="eval mvn clean verify > /tmp/out"
command="mvn clean verify > /tmp/out"The redirect greater-than sign was being passed to the mvn command. Placing an eval in front of the mvn command does the trick:
$command
command="eval mvn clean verify > /tmp/out"
You can also put quotes of course around the command you're eval'ing:
ReplyDelete$ eval 'ls' > /tmp/out
This helped me six years after you posted. Thanks John!
Delete