Files
scripts/Linux Bash Skript Module/testscript.sh
2024-10-14 00:08:40 +02:00

30 lines
728 B
Bash

#!/bin/bash
# Import functions defined globally
MODULES=./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