Files
conetadm 5718e70f15 init
2024-11-14 21:11:06 +01:00

32 lines
731 B
Bash
Executable File

#!/bin/bash
# Import functions defined globally
MODULES=/scripts/modules
for MODULE in `ls $MODULES/*.mod`; do source $MODULE .; done
# functions imported return their values by echo
# to use them you need to redirect output to variables
# define some global Variables
LOGFILE=$(log_file)
email_ini_template
# save your current directory
save_dir
# Start your Script from here
#cd /
#pwd
#cd home
#fprint $LOGFILE "test 123 333"
#fprint $LOGFILE "hallo welt!"
email_from_template "ageissler@tenoc.de" "noreply <noreply@tenoc.de>" "sub" "txt" ""
email_from_template "ageissler@tenoc.de" "noreply <noreply@tenoc.de>" "sub" "txt" "HEADERFILE"
# End of Script
# jump back to old directory
load_dir