[Sidefx-houdini-list] help unix command
pbowmar at gmail.com
Mon Apr 16 08:13:24 EDT 2007
You should be able to come up with a magical combination of \'
that works, I have to do this as well from within Houdini. The problem
is that because you're setting a variable, then evaluating the
variable, you may have to double-escape it like so:
which will put the \ also into the string. Right now, with the single
escape, the \ doesn't go into the $str variable.
I think :) I find that I have to play around a lot to get this kind of
thing to work because you're passing escape characters through
multiple levels of Houdini and the shell.
On 16/04/07, Luca Zappala <luca at cinesite.co.uk> wrote:
> I was wondering if somebody could help me with this:
> I'm on linux and would like to execute a shell command from inside houdini.
> the shell command must read publish3d -d path -e user -g 3R -c
> 'comment bla bla bla'
> This is part of the hscript I wrote:
> set str = "rsh fruit-master publish3d -d
> "$strShotPath"/outputs/renders/"$strRFilename" -e "$strLogin" -g 3R -c
> unix $str
> unfortunately the comment parameter is not transferred because it gets
> truncated at the ' (single quote) position.
> I tried replacing ' with \' , " and \" unsuccessfully.
> Any idea?
> My current workaround is to edit the comment string and replace all
> spaces with underscore, and sending the comment as one word (this
> doesn't require single quotes).
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
More information about the Sidefx-houdini-list