ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
pm_sysShell.F90 File Reference

Go to the source code of this file.

Data Types

type  pm_sysShell::shellis_type
 This is the shellis_type class for generating objects with logical components to determine the runtime shell type of the operating system. More...
 
type  pm_sysShell::shell_type
 This is the shell_type class for generating objects to determine the runtime shell type of the operating system. More...
 
interface  pm_sysShell::isFailedGetEnvVar
 Generate and return failed = .false. if the value of the input environment variable name can be successfully retrieved as a trimmed string in the output argument value.
Otherwise, return failed = .true. indicating the occurrence of an error.
More...
 
interface  pm_sysShell::isFailedPutEnvVar
 Generate and return .true. if the attempt to (re)define the environment variable name with the specified value in the runtime shell **fails, otherwise return .false. upon success.
More...
 
interface  pm_sysShell::isFailedGetOutput
 Generate and return failed = .false. if the output of the input system command is successfully retrieved in the allocatable argument output.
Otherwise, return failed = .true. indicating the occurrence of an error. More...
 
interface  pm_sysShell::isFailedGetDirTemp
 Generate and return failed = .false. if the path to the shell-specified temporary directory is successfully returned in the output dirTemp argument.
Otherwise, return failed = .true. indicating the occurrence of an error. More...
 
interface  pm_sysShell::isShellPosix
 Generate and return .true. if the runtime system shell is POSIX-compliant regardless of the Operating System. More...
 
interface  pm_sysShell::isShellWindows
 Generate and return .true. if the runtime system shell is Windows-based (e.g., CMD, PowerShell) regardless of the Operating System. More...
 
interface  pm_sysShell::isShellCMD
 Generate and return .true. if the runtime system shell is Windows CMD. More...
 
interface  pm_sysShell::isShellPowerShell
 Generate and return .true. if the runtime system shell is Microsoft PowerShell Core (on Unix systems) or Windows PowerShell (on Windows systems). More...
 
interface  pm_sysShell::isFailedExec
 Generate and return failed = .false. if the attempt to run the requested shell command is successful.
Otherwise, return failed = .true. indicating the occurrence of an error. More...
 
interface  pm_sysShell::isFailedGetShellShape
 Generate and return failed = .false. if the attempt to fetch the shape (height and width) of the current shell terminal is successful.
Otherwise, return failed = .true. indicating the occurrence of an error.
More...
 
interface  pm_sysShell::isFailedGetShellWidth
 Generate and return failed = .false. if the attempt to fetch the width (in characters) of the current shell terminal is successful.
Otherwise, return failed = .true. indicating the occurrence of an error. More...
 
interface  pm_sysShell::isFailedGetShellHeight
 Generate and return failed = .false. if the attempt to fetch the height (in characters) of the current shell terminal is successful.
Otherwise, return failed = .true. indicating the occurrence of an error. More...
 

Modules

module  pm_sysShell
 This module contains procedures and generic interfaces for inferring the runtime system shell type and fetching information from the shell.
 

Variables

character(*, SK), parameter pm_sysShell::MODULE_NAME = SK_"@pm_sysShell"
 
character(4, SK), dimension(*), parameter pm_sysShell::VARENV_DIRTEMP_WINDOWS = [character(4, SK) :: "TEMP", "TMP"]
 The constant vector of scalars of type character of default kind SK, containing the Windows shell environmental variable names that potentially the path to the system directory within which temporary files can be stored. More...
 
character(7, SK), dimension(*), parameter pm_sysShell::VARENV_DIRTEMP_UNIX = [character(7, SK) :: "TMPDIR", "TMP", "TEMP", "TEMPDIR"]
 The constant vector of scalars of type character of default kind SK, containing the Unix shell environmental variable names that potentially the path to the system directory within which temporary files can be stored. More...