You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add function by which the user can redirect stdin from a file.
Motivating Example
Redirect for stdin is a common use case when manipulating shell programs that require interactive input. The MD engine Gromacs has several analytical programs which require interactive input, e.g. gmx energy.
When calling gmx energy with an appropriate energy file *.edr, the user is prompted to select which variable should be calculated (e.g. potential energy) from a numerated list (e.g. user inputs "16 0"). In this example, the user input could be stored in a file, allowing programmatic use of the gmx energy executable and its relevant outputs.
Recommended workaround
Per conversation with @andre-merzky, there is a workaround where the shell itself (/bin/sh) is named as the executable, and the input variables include the functional and desired redirects (gmx energy -f energy.edr < input.txt). This approach may not be portable to all use cases.
The text was updated successfully, but these errors were encountered:
Description
Add function by which the user can redirect stdin from a file.
Motivating Example
Redirect for stdin is a common use case when manipulating shell programs that require interactive input. The MD engine Gromacs has several analytical programs which require interactive input, e.g. gmx energy.
When calling gmx energy with an appropriate energy file *.edr, the user is prompted to select which variable should be calculated (e.g. potential energy) from a numerated list (e.g. user inputs "16 0"). In this example, the user input could be stored in a file, allowing programmatic use of the gmx energy executable and its relevant outputs.
Recommended workaround
Per conversation with @andre-merzky, there is a workaround where the shell itself (/bin/sh) is named as the executable, and the input variables include the functional and desired redirects (gmx energy -f energy.edr < input.txt). This approach may not be portable to all use cases.
The text was updated successfully, but these errors were encountered: