MEL: system and exec commands on Mac OS X

We’re trying to get a batch script going here to convert our texture files into .tex for renderman. So far everything works (the syntax is correct and the file names are properly queried) but the actual conversion won’t work. It works on the windows machines, not the Mac, so from what I gathered in the docs it was the syntax for sending the command to the shell on OS X that needs to be different.

Would highly appreciate help on this as we have a ton of things to convert and doing them by hand could take hours.

Here are the 2 commands that work on PC:

Code:

exec (("txmake \""+$files[$i]+"\" \""+$files[$i]+".tex\""));
system(("txmake "+$filename+$files[$i]+" "+$filename+$files[$i]+".tex"));


Thanks

LD

No Responses to “MEL: system and exec commands on Mac OS X”

Post a Comment