Jump to content

Running Hscript From Command Line?


spev

Recommended Posts

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:

Link to comment
Share on other sites

Try:

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

Does that work?

George.

24357[/snapback]

Thanks for the reply george

your suggestion works if you put single quotes around the script and arg. eg..

echo `~/houdini8.0/scripts/test.cmd arg` | hscript -v xx.hip

ta

spev

Link to comment
Share on other sites

Thanks  for the reply george

your suggestion works if you put single quotes around the script and arg. eg..

echo `~/houdini8.0/scripts/test.cmd arg` | hscript -v xx.hip

ta

spev

24369[/snapback]

And if you put single quotes with your first example?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...