problems running hscript from command line linux

   4090   3   1
User Avatar
Member
35 posts
Joined:
Offline
I want to run a line like the one below on Linux

hscript -v xx.hip < ~/houdini8.0/scripts/test.cmd arg

but hscript see's the argument for my hscript as another file to load….How can I get around this behaviour??? and get the hscript to load up the scene and run my script with the right variables
Ta In advance


:ph34r:
User Avatar
Member
7024 posts
Joined: July 2005
Offline
Quote it, would be my guess

hscript -v xx.hip < “~/houdini8.0/scripts/test.cmd arg”

Could be wrong though, haven't tried it.

Cheers,

Peter B
User Avatar
Staff
2590 posts
Joined: July 2005
Offline
spev
I want to run a line like the one below on Linux

hscript -v xx.hip < ~/houdini8.0/scripts/test.cmd arg

but hscript see's the argument for my hscript as another file to load….How can I get around this behaviour??? and get the hscript to load up the scene and run my script with the right variables
Ta In advance


:ph34r:

echo ‘~/houdini8.0/scripts/test.cmd arg’ | hscript -v xx.hip
User Avatar
Member
35 posts
Joined:
Offline
Thanks Mark that worked a treat…….but pete putting quotes unfortunately did not work
as Hscript command only sees the name as a command only so with quotes it thinks the args are part of the command name and not arguments.
Thanks again for such a quick response.
spev
  • Quick Links