execute_and_read_output Subroutine

public subroutine execute_and_read_output(cmd, output, error, verbose)

Execute command line and return output as a string.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: cmd

Command to execute.

character(len=:), intent(out), allocatable :: output

Command line output.

type(error_t), intent(out), allocatable :: error

Error to handle.

logical, intent(in), optional :: verbose

Print additional information if true.