Tyler Britton2
April 10, 2019 15:59:27
I was wondering how I would run a linux terminal bash script using PDG. Something like the Unix sop node, but in TOPS. It is just a one line script (it is actually just “deadlineslave” to start a Deadline slave on my workstation).
tpetrick
April 10, 2019 16:50:20
The Generic Generator node lets you run any executable that's on your PATH as a work item. If you want to actually use the shell itself, e.g. for piping between several executables, you'll need to run it with /bin/sh (or your shell of choice). For example, setting a Generic Generator's command field to /bin/sh -c “ls -la | grep *.txt”.
In you case though, you probably just want something like deadlineslave -nogui -name “somename”, which would work fine as long as the deadlineslave executable can be found on the PATH.
Tyler Britton2
May 3, 2019 12:22:35
Is there a way to run hscript commands in PDG as well, something like “opparm -c /out/mantra1 execute”.
I tried it with the Generic Generator with no success.
chrisgreb
May 3, 2019 13:52:16
We don't have an hscript processor, I think you could do this using a pythonscript node (in-process), with
function.
EDIT: But be careful because triggering a Houdini cook in the middle of a PDG cook is not something we've tested.
Tyler Britton2
May 3, 2019 16:23:22
Yeah it doesn't seem to work.
hou.hscript('opparm -c opparm -c /out/mantra1 execute')