Search - User list
Full Version: Set work item command with glob pattern?
Root » PDG/TOPs » Set work item command with glob pattern?
waynewu
Hi,

Is there a way to set the work item's command with glob pattern?

Right now we're having issues where the command is getting gigantically long because we're joining all the result files in one string, and in some cases we have hundreds of result files (e.g. $HIP/geo/test.1.usd, $HIP/geo/test.2.usd…).

There's a nice util function: pdg.utils.format_results which will return the glob pattern of the result files (e.g. $HIP/geo/test.*.usdc). However, it will not work with via setting the command since it's probably a shell-only functionality.

Just wondering if it's even possible to do something like this?

Thanks,

Wayne W.
chrisgreb
yes, in general since the glob pattern is a shell feature you will have to be executing a shell executable instead of the program directly. For example your command could be `/bin/bash -c “dothis $HIP/geo/test.*.usdc”`.

However some programs support other ways of passing a lot of arguments so it may depend on what program you are using.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB