ec2_post_init
Populate STScI EC2 instances with ease
io.inc.sh File Reference

Input output functions. More...

Go to the source code of this file.

Functions

 io_timestamp ()
 Return current date and time. More...
 
 io_info (...)
 Print a message. More...
 
 io_warn (...)
 Print a warning message. More...
 
 io_error (...)
 Print an error message. More...
 

Variables

Exported String io_datefmt
 Date format for IO functions. More...
 

Detailed Description

Input output functions.

Definition in file io.inc.sh.

Function Documentation

◆ io_error()

io_error (   ...)

Print an error message.

Parameters
...message arguments
var=hello
ec2pinit_debug=$DEBUG_ERROR
io_error "oh no... $var"
# 2022-06-22 18:46:57 - ERROR: oh no... hello
io_error(...)
Print an error message.
Definition: io.inc.sh:59
Exported String ec2pinit_debug
Debug output control.

Definition at line 59 of file io.inc.sh.

◆ io_info()

io_info (   ...)

Print a message.

Parameters
...message arguments
var=hello
ec2pinit_debug=$DEBUG_INFO
io_info "$var"
# 2022-06-22 18:46:57 - INFO: hello
io_info(...)
Print a message.
Definition: io.inc.sh:29

Definition at line 29 of file io.inc.sh.

◆ io_timestamp()

io_timestamp ( )

Return current date and time.

Return values
dateas string

Definition at line 15 of file io.inc.sh.

◆ io_warn()

io_warn (   ...)

Print a warning message.

Parameters
...message arguments
var=hello
ec2pinit_debug=$DEBUG_WARN
io_warn "uh oh... $var"
# 2022-06-22 18:46:57 - WARN: uh oh... hello
io_warn(...)
Print a warning message.
Definition: io.inc.sh:44

Definition at line 44 of file io.inc.sh.

Variable Documentation

◆ io_datefmt

Exported String io_datefmt

Date format for IO functions.

Definition at line 10 of file io.inc.sh.