I am trying to implement a nice random string generator in my build file using the following ExecTask
<exec command="cat /dev/urandom | tr -cd '[:alnum:]' | fold -w30 | head -n1" returnProperty="random" />
While this works fine when run on the command line, this leads to the fact that my build script just freezes when I try to call it from Phing. I tried various escape patterns to no avail. What am I doing wrong?
source
share