Exec and command line redirects?
OK, I've been fighting this one all afternoon.
I need to execute the command line
mkpasswd -l >> passwd
mkpasswd lives in $INSTDIR\bin, and I really want the file to land in $INSTDIR\etc, but I can't even get that far. mkpasswd just prints to stdout and I need to get that into a file.
No matter what combination of quoting (and I've tried a lot) I use, I always get either silent failure or "mkpasswd: a domain is only accepted when -d is given"
In other words, the '>>' is being interpreted as a parameter to mkpasswd, not as a redirect.
I've read a dozen threads on similar and I can't figure this one out.
I really want to say
nsExec::ExecToLog '$INSTDIR\bin\mkpasswd -l >> $INSTDIR\etc\passwd'
with whatever additional quoting/escaping/chanting/cursing is necessary to make it work.
Any guidance would be appreciated.
Thanks,
Zandr