nipype.utils.subprocess module¶
Miscellaneous utility functions
- class nipype.utils.subprocess.Stream(name, impl)¶
Bases:
object
Function to capture stdout and stderr streams with timestamps
stackoverflow.com/questions/4984549/merge-and-sync-stdout-and-stderr/5188359
- fileno()¶
Pass-through for file descriptor.
- read(drain=0)¶
Read from the file descriptor. If ‘drain’ set, read until EOF.
- nipype.utils.subprocess.run_command(runtime, output=None, timeout=0.01, write_cmdline=False)¶
Run a command, read stdout and stderr, prefix with timestamp.
The returned runtime contains a merged stdout+stderr log with timestamps