Evalue ksh command in Groovy script

Status
Not open for further replies.
Quick question - I'm parsing an xml file in Groovy in which some of the values being parsed out are korn shell commands I want to run. I can either have them run directly as they are parsed or store them in a list and run them after the entire doc is parsed. Any ideas how I can accomplish this? Thanks!

For instance,

<nodeName flag="flagName">
<commands>some korn shell command</commands>
<commands>anoteher korn shell command</commands>
</nodeName>
 
Status
Not open for further replies.