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.
Set work item command with glob pattern?
1712 1 1-
- waynewu
- Member
- 10 posts
- Joined: Feb. 2016
- Offline
-
- chrisgreb
- Member
- 603 posts
- Joined: Sept. 2016
- Offline
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.
However some programs support other ways of passing a lot of arguments so it may depend on what program you are using.
Edited by chrisgreb - April 21, 2020 10:51:13
-
- Quick Links