init
This commit is contained in:
31
rancid/module_test/test.sh
Executable file
31
rancid/module_test/test.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user