# Class: com.pnfsoftware.jeb.util.base.BashUtil

Helper to interact with `bash` terminals. 

 This helper can be used to retrieve bash environment variables \(variables not defined system\-wide\).

## Static Method: env
- parameter: `varname`, type: `java.lang.String`
- return type: `java.lang.String`

Description: Get an environment variable provided within a Bash interactive session.
parameter: varname: variable name
return: the value, or null on error or if none is defined

## Static Method: exec
- parameter: `timeoutMs`, type: `long`
- parameter: `cmd`, type: `java.lang.String`
- return type: `java.lang.String`

Description: Run a Bash interactive command.
parameter: timeoutMs: timeout in milliseconds, must be equal or greater than zero
parameter: cmd: the bash command: `bash -ic <command>`
return: the command result, null on error or if the execution timed\-out

