#!/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 " "sub" "txt" "" "" email_from_template "ageissler@tenoc.de" "noreply " "sub" "txt" "" "HEADERFILE" # End of Script # jump back to old directory load_dir