[Sidefx-houdini-list] help unix command

b.fx at free.fr b.fx at free.fr
Mon Apr 16 10:44:15 EDT 2007


i forgot to add the redirection to the end of the line.

echo "rsh fruit-master publish3d -d
"$strShotPath"/outputs/renders/"$strRFilename" -e "$strLogin" -g 3R -c
"$strCommentNew > /workpath/togo.sh;

but you are already going through...

cheers
francois

Selon Luca Zappala <luca at cinesite.co.uk>:

> @Peter
> Thanks,
> the correct way was moving the single quotes down to the unix line and
> add \ three times.
>     set strCommentNew = `chs("comment")`
>     set str = "rsh fruit-master publish3d -d
> "$strShotPath"/outputs/renders/"$strRFilename" -e "$strLogin" -g 3R -c "
>     unix  $str\\\'$strCommentNew\\\'
>
>
> @b.fx
> It's not clear to me how you insert code into togo.sh because in the
> example provided togo.sh seems remaining empty.
>
> Thanks again guys
> Luca
>
> b.fx wrote:
> > Hello,
> >
> > Difficult to reproduce your exact command line...
> > Have you try to build up a file with the command you wish to execute
> > and then execute it.
> >
> > set strCommentNew=" ' my comments to be include' "
> > unix touch /workpath/togo.sh;
> > echo "rsh fruit-master publish3d -d
> > "$strShotPath"/outputs/renders/"$strRFilename" -e "$strLogin" -g 3R -c
> > "$strCommentNew;
> > unix sh /workpath/togo.sh;
> > unix rm /workpath/togo.sh;
> >
> > cheers
> > francois
> >
> > Luca Zappala wrote:
> >> Hello,
> >>
> >> 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 '"$strCommentNew"'"
> >> 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?
> >> Thanks
> >> Luca
> >>
> >> p.s.
> >> 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
> >> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> >>
> >>
> >
> > _______________________________________________
> > Sidefx-houdini-list mailing list
> > Sidefx-houdini-list at sidefx.com
> > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> >
>
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>





More information about the Sidefx-houdini-list mailing list