Version |
Releasedate |
Description
|
1.0.0 |
08.06.2014 | initial release |
1.0.1 |
09.01.2016 |
####
die will now end the script even if the parameter -f is used |
1.0.2 | 01.01.2017 |
####
replaced "set -o noglob" with "set -f" and "set -o glob"
with "set +f" to be compatible with shells #### like mirksh that to not support the glob/noglob syntax |
[xtrnaw7@t540p scripts]$ ./execute_scripts.sh -I
"test" -x "*/start.sh" -x "*/stop.sh" -s test/start.sh -z
test/stop.sh -I test/s00* -I listfile_not_there -I
logs -I "test/00*no_files_for_this_mask" -D
no_of_error_loglines=100 -D no_of_ok_loglines=50 -D
no_of_logfile_lines=20 -i /usr/bin/uname -I
neither_dir_nor_file [08.06.2014 08:43:25] execute_scripts.sh v1.0.0 started at So 8. Jun 08:43:25 CEST 2014. [08.06.2014 08:43:25] Reading the config file "/data/develop/scripts/execute_scripts.conf" ... [08.06.2014 08:43:25] WARNING: No executables found for the regular expression "test/s00*" [08.06.2014 08:43:25] WARNING: File/Directory "listfile_not_there" NOT found. [08.06.2014 08:43:25] WARNING: No executables found in the directory "logs" [08.06.2014 08:43:25] WARNING: No executables found for the regular expression "test/00*no_files_for_this_mask" [08.06.2014 08:43:25] WARNING: File/Directory "neither_dir_nor_file" NOT found. [08.06.2014 08:43:25] Using the log file "/var/tmp/execute_scripts.LOG" [08.06.2014 08:43:25] [08.06.2014 08:43:25] Will process 12 executable(s). (Parameter -I and/or -i) [08.06.2014 08:43:25] The regular expression(s) for executables that should not be executed are (Parameter -x): [08.06.2014 08:43:25] */start.sh */stop.sh [08.06.2014 08:43:25] Duplicates are NOT removed from the list of executables (Parameter -r to change) [08.06.2014 08:43:25] Using the start script "/data/develop/scripts/test/start.sh" (Parameter -s) [08.06.2014 08:43:25] Using the stop script "/data/develop/scripts/test/stop.sh" (Parameter -z) [08.06.2014 08:43:25] The working directory is "/var/tmp/execute_scripts.sh.20679.work". (Parameter -o) [08.06.2014 08:43:25] Start and stop comment lines will be added to the logfiles (Parameter -k to change) [08.06.2014 08:43:25] [08.06.2014 08:43:25] The executables will run sequential one after the other (Parameter -d to change). [08.06.2014 08:43:25] [08.06.2014 08:43:25] The return code of the executables will be ignored (Parameter -B to change) [08.06.2014 08:43:25] The last 100 lines of the logfiles of the executables will be printed after the executable finished with RC not equal zero (Parameter -D no_of_logfile_lines=100) [08.06.2014 08:43:25] The last 50 lines of the logfiles of the executables will be printed after the executable finished with RC nequal zero (Parameter -D no_of_logfile_lines=50) *** Enter <l><return> to list the executables to execute, <x> to list the regex for executables not to execute, <p> to view the script parameter *** <y><return> to start or <n><return> to abort. Default is <n>: y [08.06.2014 08:43:26] Starting processing ... [08.06.2014 08:43:26] Executing the start script "/data/develop/scripts/test/start.sh" ... This is /data/develop/scripts/test/start.sh ... [08.06.2014 08:43:26] ---- Processing "/data/develop/scripts/test/001test.sh" ... ( 1 from 12) [08.06.2014 08:43:26] The RC is 0; the log file is "/var/tmp/execute_scripts.sh.20679.work/001test.sh.20679.log" [08.06.2014 08:43:26] The last 50 line(s) of the logfile "/var/tmp/execute_scripts.sh.20679.work/001test.sh.20679.log" are: [08.06.2014 08:43:26] ------------------------------------- # ### ---- Log of the executable "/data/develop/scripts/test/001test.sh" executed at So 8. Jun 08:43:26 CEST 2014--- start --- This is /data/develop/scripts/test/001test.sh ... # ### ---- Log of the executable "/data/develop/scripts/test/001test.sh" executed at So 8. Jun 08:43:26 CEST 2014 --- end --- [08.06.2014 08:43:26] ------------------------------------- [08.06.2014 08:43:26] ---- Processing "/data/develop/scripts/test/002test.sh" ... ( 2 from 12) [08.06.2014 08:43:26] The RC is 1; the log file is "/var/tmp/execute_scripts.sh.20679.work/002test.sh.20679.log" [08.06.2014 08:43:26] The last 100 line(s) of the logfile "/var/tmp/execute_scripts.sh.20679.work/002test.sh.20679.log" are: [08.06.2014 08:43:26] ------------------------------------- # ### ---- Log of the executable "/data/develop/scripts/test/002test.sh" executed at So 8. Jun 08:43:26 CEST 2014--- start --- This is /data/develop/scripts/test/002test.sh ... # ### ---- Log of the executable "/data/develop/scripts/test/002test.sh" executed at So 8. Jun 08:43:26 CEST 2014 --- end --- [08.06.2014 08:43:26] ------------------------------------- [08.06.2014 08:43:26] ---- Processing "/data/develop/scripts/test/003test.sh" ... ( 3 from 12) [08.06.2014 08:43:26] The RC is 1; the log file is "/var/tmp/execute_scripts.sh.20679.work/003test.sh.20679.log" [08.06.2014 08:43:26] The last 100 line(s) of the logfile "/var/tmp/execute_scripts.sh.20679.work/003test.sh.20679.log" are: [08.06.2014 08:43:26] ------------------------------------- # ### ---- Log of the executable "/data/develop/scripts/test/003test.sh" executed at So 8. Jun 08:43:26 CEST 2014--- start --- This is /data/develop/scripts/test/003test.sh ... # ### ---- Log of the executable "/data/develop/scripts/test/003test.sh" executed at So 8. Jun 08:43:26 CEST 2014 --- end --- [08.06.2014 08:43:26] ------------------------------------- [08.06.2014 08:43:26] ---- Processing "/data/develop/scripts/test/004test.sh" ... ( 4 from 12) [08.06.2014 08:43:26] The RC is 1; the log file is "/var/tmp/execute_scripts.sh.20679.work/004test.sh.20679.log" [08.06.2014 08:43:26] The last 100 line(s) of the logfile "/var/tmp/execute_scripts.sh.20679.work/004test.sh.20679.log" are: [08.06.2014 08:43:26] ------------------------------------- # ### ---- Log of the executable "/data/develop/scripts/test/004test.sh" executed at So 8. Jun 08:43:26 CEST 2014--- start --- This is /data/develop/scripts/test/004test.sh ... # ### ---- Log of the executable "/data/develop/scripts/test/004test.sh" executed at So 8. Jun 08:43:26 CEST 2014 --- end --- [08.06.2014 08:43:26] ------------------------------------- [08.06.2014 08:43:26] ---- Processing "/data/develop/scripts/test/005test.sh" ... ( 5 from 12) [08.06.2014 08:43:27] The RC is 1; the log file is "/var/tmp/execute_scripts.sh.20679.work/005test.sh.20679.log" [08.06.2014 08:43:27] The last 100 line(s) of the logfile "/var/tmp/execute_scripts.sh.20679.work/005test.sh.20679.log" are: [08.06.2014 08:43:27] ------------------------------------- # ### ---- Log of the executable "/data/develop/scripts/test/005test.sh" executed at So 8. Jun 08:43:27 CEST 2014--- start --- This is /data/develop/scripts/test/005test.sh ... # ### ---- Log of the executable "/data/develop/scripts/test/005test.sh" executed at So 8. Jun 08:43:27 CEST 2014 --- end --- [08.06.2014 08:43:27] ------------------------------------- [08.06.2014 08:43:27] ---- Processing "/data/develop/scripts/test/006test.sh" ... ( 6 from 12) [08.06.2014 08:43:27] The RC is 1; the log file is "/var/tmp/execute_scripts.sh.20679.work/006test.sh.20679.log" [08.06.2014 08:43:27] The last 100 line(s) of the logfile "/var/tmp/execute_scripts.sh.20679.work/006test.sh.20679.log" are: [08.06.2014 08:43:27] ------------------------------------- # ### ---- Log of the executable "/data/develop/scripts/test/006test.sh" executed at So 8. Jun 08:43:27 CEST 2014--- start --- This is /data/develop/scripts/test/006test.sh ... # ### ---- Log of the executable "/data/develop/scripts/test/006test.sh" executed at So 8. Jun 08:43:27 CEST 2014 --- end --- [08.06.2014 08:43:27] ------------------------------------- [08.06.2014 08:43:27] ---- Processing "/data/develop/scripts/test/007test.sh" ... ( 7 from 12) [08.06.2014 08:43:27] The RC is 1; the log file is "/var/tmp/execute_scripts.sh.20679.work/007test.sh.20679.log" [08.06.2014 08:43:27] The last 100 line(s) of the logfile "/var/tmp/execute_scripts.sh.20679.work/007test.sh.20679.log" are: [08.06.2014 08:43:27] ------------------------------------- # ### ---- Log of the executable "/data/develop/scripts/test/007test.sh" executed at So 8. Jun 08:43:27 CEST 2014--- start --- This is /data/develop/scripts/test/007test.sh ... # ### ---- Log of the executable "/data/develop/scripts/test/007test.sh" executed at So 8. Jun 08:43:27 CEST 2014 --- end --- [08.06.2014 08:43:27] ------------------------------------- [08.06.2014 08:43:27] ---- Processing "/data/develop/scripts/test/008test.sh" ... ( 8 from 12) [08.06.2014 08:43:27] The RC is 1; the log file is "/var/tmp/execute_scripts.sh.20679.work/008test.sh.20679.log" [08.06.2014 08:43:27] The last 100 line(s) of the logfile "/var/tmp/execute_scripts.sh.20679.work/008test.sh.20679.log" are: [08.06.2014 08:43:27] ------------------------------------- # ### ---- Log of the executable "/data/develop/scripts/test/008test.sh" executed at So 8. Jun 08:43:27 CEST 2014--- start --- This is /data/develop/scripts/test/008test.sh ... # ### ---- Log of the executable "/data/develop/scripts/test/008test.sh" executed at So 8. Jun 08:43:27 CEST 2014 --- end --- [08.06.2014 08:43:27] ------------------------------------- [08.06.2014 08:43:27] ---- Processing "/data/develop/scripts/test/009test.sh" ... ( 9 from 12) [08.06.2014 08:43:27] The RC is 1; the log file is "/var/tmp/execute_scripts.sh.20679.work/009test.sh.20679.log" [08.06.2014 08:43:27] The last 100 line(s) of the logfile "/var/tmp/execute_scripts.sh.20679.work/009test.sh.20679.log" are: [08.06.2014 08:43:27] ------------------------------------- # ### ---- Log of the executable "/data/develop/scripts/test/009test.sh" executed at So 8. Jun 08:43:27 CEST 2014--- start --- This is /data/develop/scripts/test/009test.sh ... # ### ---- Log of the executable "/data/develop/scripts/test/009test.sh" executed at So 8. Jun 08:43:27 CEST 2014 --- end --- [08.06.2014 08:43:27] ------------------------------------- [08.06.2014 08:43:27] ++++ The executable "/data/develop/scripts/test/start.sh" is on the exclude list. Ignoring this executable. [08.06.2014 08:43:27] ++++ The executable "/data/develop/scripts/test/stop.sh" is on the exclude list. Ignoring this executable. [08.06.2014 08:43:27] ---- Processing "/usr/bin/uname" ... ( 10 from 12) [08.06.2014 08:43:27] The RC is 0; the log file is "/var/tmp/execute_scripts.sh.20679.work/uname.20679.log" [08.06.2014 08:43:27] The last 50 line(s) of the logfile "/var/tmp/execute_scripts.sh.20679.work/uname.20679.log" are: [08.06.2014 08:43:27] ------------------------------------- # ### ---- Log of the executable "/usr/bin/uname" executed at So 8. Jun 08:43:27 CEST 2014--- start --- Linux # ### ---- Log of the executable "/usr/bin/uname" executed at So 8. Jun 08:43:27 CEST 2014 --- end --- [08.06.2014 08:43:27] ------------------------------------- [08.06.2014 08:43:27] Executing the stop script "/data/develop/scripts/test/stop.sh" ... This is /data/develop/scripts/test/stop.sh ... [08.06.2014 08:43:27] [08.06.2014 08:43:27] All done (10 executable(s) ). [08.06.2014 08:43:27] [08.06.2014 08:43:27] [08.06.2014 08:43:27] 10 executable(s) executed: /data/develop/scripts/test/001test.sh /data/develop/scripts/test/002test.sh /data/develop/scripts/test/003test.sh /data/develop/scripts/test/004test.sh /data/develop/scripts/test/005test.sh /data/develop/scripts/test/006test.sh /data/develop/scripts/test/007test.sh /data/develop/scripts/test/008test.sh /data/develop/scripts/test/009test.sh /usr/bin/uname [08.06.2014 08:43:27] 2 executable(s) not executed because they are on the exclude list: /data/develop/scripts/test/start.sh /data/develop/scripts/test/stop.sh [08.06.2014 08:43:27] The working directory was "/var/tmp/execute_scripts.sh.20679.work". [08.06.2014 08:43:27] The log file used was "/var/tmp/execute_scripts.LOG" [08.06.2014 08:43:27] execute_scripts.sh v1.0.0 started at So 8. Jun 08:43:25 CEST 2014 and ended at So 8. Jun 08:43:27 CEST 2014. [08.06.2014 08:43:27] The RC is 0. [xtrnaw7@t540p scripts]$ |
[xtrnaw7@t540p scripts]$ ./execute_scripts.sh -I
"test" -x "*/start.sh" -x "*/stop.sh" -s test/start.sh -z
test/stop.sh -I test/s00* -I listfile_not_there -I
logs -I "test/00*no_files_for_this_mask" -D
no_of_error_loglines=100 -D no_of_ok_loglines=50 -D
no_of_logfile_lines=20 -i /usr/bin/uname -I
neither_dir_nor_file -B -d -W ,10 [08.06.2014 08:36:34] execute_scripts.sh v1.0.0 started at So 8. Jun 08:36:34 CEST 2014. [08.06.2014 08:36:34] No config file ("execute_scripts.conf") found (use -C to create a default config file) [08.06.2014 08:36:34] WARNING: No executables found for the regular expression "test/s00*" [08.06.2014 08:36:34] WARNING: File/Directory "listfile_not_there" NOT found. [08.06.2014 08:36:34] WARNING: No executables found in the directory "logs" [08.06.2014 08:36:34] WARNING: No executables found for the regular expression "test/00*no_files_for_this_mask" [08.06.2014 08:36:34] WARNING: File/Directory "neither_dir_nor_file" NOT found. [08.06.2014 08:36:34] Using the log file "/var/tmp/execute_scripts.LOG" [08.06.2014 08:36:34] [08.06.2014 08:36:34] Will process 12 executable(s). (Parameter -I and/or -i) [08.06.2014 08:36:34] The regular expression(s) for executables that should not be executed are (Parameter -x): [08.06.2014 08:36:34] */start.sh */stop.sh [08.06.2014 08:36:34] Duplicates are NOT removed from the list of executables (Parameter -r to change) [08.06.2014 08:36:34] Using the start script "/data/develop/scripts/test/start.sh" (Parameter -s) [08.06.2014 08:36:34] Using the stop script "/data/develop/scripts/test/stop.sh" (Parameter -z) [08.06.2014 08:36:34] The working directory is "/var/tmp/execute_scripts.sh.19041.work". (Parameter -o) [08.06.2014 08:36:34] Start and stop comment lines will be added to the logfiles (Parameter -k to change) [08.06.2014 08:36:34] [08.06.2014 08:36:34] The executables will run parallel in the background (Parameter -d) [08.06.2014 08:36:34] [08.06.2014 08:36:34] The maximum number of parallel background processes is -1 (Parameter -w -1,x,x -1 = not limited). [08.06.2014 08:36:34] The wait intervall for starting the background processes is 5 second(s) (Parameter -w x,5s,x); [08.06.2014 08:36:34] the timeout for starting the background processes is 300 second(s) (Parameter -w x,x,5m -1 = not limited). [08.06.2014 08:36:34] [08.06.2014 08:36:34] Waiting up to 3600 second(s) for the background processes to finish (Parameter -W 1h,x, -1 = not limited). [08.06.2014 08:36:34] The wait intervall for waiting for the background processes to finish is 10 second(s) (Parameter -W x,10 ) [08.06.2014 08:36:34] [08.06.2014 08:36:34] The last 20 lines of the logfiles of the executables will be printed after the executable finished (Parameter -D no_of_logfile_lines=20) *** Enter <l><return> to list the executables to execute, <x> to list the regex for executables not to execute, <p> to view the script parameter *** <y><return> to start or <n><return> to abort. Default is <n>: y [08.06.2014 08:36:36] Starting processing ... [08.06.2014 08:36:36] Executing the start script "/data/develop/scripts/test/start.sh" ... This is /data/develop/scripts/test/start.sh ... [08.06.2014 08:36:36] Number of running processes are: 0 [08.06.2014 08:36:36] ---- Processing the executable "/data/develop/scripts/test/001test.sh" ... ( 1 from 12; 0 already started) [08.06.2014 08:36:36] The log file is "/var/tmp/execute_scripts.sh.19041.work/001test.sh.19041.log" [08.06.2014 08:36:36] Number of running processes are: 1 [08.06.2014 08:36:36] ---- Processing the executable "/data/develop/scripts/test/002test.sh" ... ( 2 from 12; 1 already started) [08.06.2014 08:36:36] The log file is "/var/tmp/execute_scripts.sh.19041.work/002test.sh.19041.log" [08.06.2014 08:36:37] Number of running processes are: 2 [08.06.2014 08:36:37] ---- Processing the executable "/data/develop/scripts/test/003test.sh" ... ( 3 from 12; 2 already started) [08.06.2014 08:36:37] The log file is "/var/tmp/execute_scripts.sh.19041.work/003test.sh.19041.log" [08.06.2014 08:36:37] Number of running processes are: 3 [08.06.2014 08:36:37] ---- Processing the executable "/data/develop/scripts/test/004test.sh" ... ( 4 from 12; 3 already started) [08.06.2014 08:36:37] The log file is "/var/tmp/execute_scripts.sh.19041.work/004test.sh.19041.log" [08.06.2014 08:36:37] Number of running processes are: 4 [08.06.2014 08:36:37] ---- Processing the executable "/data/develop/scripts/test/005test.sh" ... ( 5 from 12; 4 already started) [08.06.2014 08:36:37] The log file is "/var/tmp/execute_scripts.sh.19041.work/005test.sh.19041.log" [08.06.2014 08:36:37] Number of running processes are: 5 [08.06.2014 08:36:37] ---- Processing the executable "/data/develop/scripts/test/006test.sh" ... ( 6 from 12; 5 already started) [08.06.2014 08:36:37] The log file is "/var/tmp/execute_scripts.sh.19041.work/006test.sh.19041.log" [08.06.2014 08:36:37] Number of running processes are: 6 [08.06.2014 08:36:37] ---- Processing the executable "/data/develop/scripts/test/007test.sh" ... ( 7 from 12; 6 already started) [08.06.2014 08:36:37] The log file is "/var/tmp/execute_scripts.sh.19041.work/007test.sh.19041.log" [08.06.2014 08:36:37] Number of running processes are: 7 [08.06.2014 08:36:37] ---- Processing the executable "/data/develop/scripts/test/008test.sh" ... ( 8 from 12; 7 already started) [08.06.2014 08:36:37] The log file is "/var/tmp/execute_scripts.sh.19041.work/008test.sh.19041.log" [08.06.2014 08:36:37] Number of running processes are: 8 [08.06.2014 08:36:37] ---- Processing the executable "/data/develop/scripts/test/009test.sh" ... ( 9 from 12; 8 already started) [08.06.2014 08:36:37] The log file is "/var/tmp/execute_scripts.sh.19041.work/009test.sh.19041.log" [08.06.2014 08:36:37] ++++ The executable "/data/develop/scripts/test/start.sh" is on the exclude list. Ignoring this executable. [08.06.2014 08:36:37] ++++ The executable "/data/develop/scripts/test/stop.sh" is on the exclude list. Ignoring this executable. [08.06.2014 08:36:37] Number of running processes are: 9 [08.06.2014 08:36:37] ---- Processing the executable "/usr/bin/uname" ... ( 10 from 12; 9 already started) [08.06.2014 08:36:37] The log file is "/var/tmp/execute_scripts.sh.19041.work/uname.19041.log" [08.06.2014 08:36:37] The loop to start the 10 background processes ended at So 8. Jun 08:36:37 CEST 2014, the runtime is 0:00:00. [08.06.2014 08:36:37] [08.06.2014 08:36:37] Starting the loop to wait for the background processes at So 8. Jun 08:36:37 CEST 2014 ... [08.06.2014 08:36:37] Waiting up to 3600 seconds for the background processes to finish ... [08.06.2014 08:36:37] Process "19351" for /usr/bin/uname finished [08.06.2014 08:36:37] The log file is "/var/tmp/execute_scripts.sh.19041.work/uname.19041.log" [08.06.2014 08:36:37] The last 20 line(s) of the logfile "/var/tmp/execute_scripts.sh.19041.work/uname.19041.log" are: [08.06.2014 08:36:37] ------------------------------------- # ### ---- Log of the executable "/usr/bin/uname" executed at So 8. Jun 08:36:37 CEST 2014--- start --- /usr/bin/uname: extra operand ‘[’ Try '/usr/bin/uname --help' for more information. [08.06.2014 08:36:37] ------------------------------------- [08.06.2014 08:36:37] Process "19333" for /data/develop/scripts/test/009test.sh is still running [08.06.2014 08:36:37] The log file is "/var/tmp/execute_scripts.sh.19041.work/009test.sh.19041.log" [08.06.2014 08:36:37] Process "19319" for /data/develop/scripts/test/008test.sh is still running [08.06.2014 08:36:37] The log file is "/var/tmp/execute_scripts.sh.19041.work/008test.sh.19041.log" [08.06.2014 08:36:37] Process "19305" for /data/develop/scripts/test/007test.sh is still running [08.06.2014 08:36:37] The log file is "/var/tmp/execute_scripts.sh.19041.work/007test.sh.19041.log" [08.06.2014 08:36:37] Process "19291" for /data/develop/scripts/test/006test.sh is still running [08.06.2014 08:36:37] The log file is "/var/tmp/execute_scripts.sh.19041.work/006test.sh.19041.log" [08.06.2014 08:36:37] Process "19277" for /data/develop/scripts/test/005test.sh is still running [08.06.2014 08:36:37] The log file is "/var/tmp/execute_scripts.sh.19041.work/005test.sh.19041.log" [08.06.2014 08:36:37] Process "19263" for /data/develop/scripts/test/004test.sh is still running [08.06.2014 08:36:37] The log file is "/var/tmp/execute_scripts.sh.19041.work/004test.sh.19041.log" [08.06.2014 08:36:37] Process "19249" for /data/develop/scripts/test/003test.sh is still running [08.06.2014 08:36:37] The log file is "/var/tmp/execute_scripts.sh.19041.work/003test.sh.19041.log" [08.06.2014 08:36:37] Process "19235" for /data/develop/scripts/test/002test.sh is still running [08.06.2014 08:36:37] The log file is "/var/tmp/execute_scripts.sh.19041.work/002test.sh.19041.log" [08.06.2014 08:36:37] Process "19220" for /data/develop/scripts/test/001test.sh is still running [08.06.2014 08:36:37] The log file is "/var/tmp/execute_scripts.sh.19041.work/001test.sh.19041.log" [08.06.2014 08:36:37] 9 background processes (from 10) are still running [08.06.2014 08:36:37] Waiting for 10 second(s) now (total wait time until now: 0 seconds; max. timeout is 3600 seconds ; remaining wait time is 3600 seconds) ... [08.06.2014 08:36:47] Process "19333" for /data/develop/scripts/test/009test.sh is still running [08.06.2014 08:36:47] The log file is "/var/tmp/execute_scripts.sh.19041.work/009test.sh.19041.log" [08.06.2014 08:36:47] Process "19319" for /data/develop/scripts/test/008test.sh finished [08.06.2014 08:36:47] The log file is "/var/tmp/execute_scripts.sh.19041.work/008test.sh.19041.log" [08.06.2014 08:36:47] The last 20 line(s) of the logfile "/var/tmp/execute_scripts.sh.19041.work/008test.sh.19041.log" are: [08.06.2014 08:36:47] ------------------------------------- # ### ---- Log of the executable "/data/develop/scripts/test/008test.sh" executed at So 8. Jun 08:36:37 CEST 2014--- start --- This is /data/develop/scripts/test/008test.sh ... # ### ---- Log of the executable "/data/develop/scripts/test/008test.sh" executed at So 8. Jun 08:36:42 CEST 2014 --- end --- [08.06.2014 08:36:47] ------------------------------------- [08.06.2014 08:36:47] Process "19305" for /data/develop/scripts/test/007test.sh is still running [08.06.2014 08:36:47] The log file is "/var/tmp/execute_scripts.sh.19041.work/007test.sh.19041.log" [08.06.2014 08:36:47] Process "19291" for /data/develop/scripts/test/006test.sh is still running [08.06.2014 08:36:47] The log file is "/var/tmp/execute_scripts.sh.19041.work/006test.sh.19041.log" [08.06.2014 08:36:47] Process "19277" for /data/develop/scripts/test/005test.sh finished [08.06.2014 08:36:47] The log file is "/var/tmp/execute_scripts.sh.19041.work/005test.sh.19041.log" [08.06.2014 08:36:47] The last 20 line(s) of the logfile "/var/tmp/execute_scripts.sh.19041.work/005test.sh.19041.log" are: [08.06.2014 08:36:47] ------------------------------------- # ### ---- Log of the executable "/data/develop/scripts/test/005test.sh" executed at So 8. Jun 08:36:37 CEST 2014--- start --- This is /data/develop/scripts/test/005test.sh ... # ### ---- Log of the executable "/data/develop/scripts/test/005test.sh" executed at So 8. Jun 08:36:42 CEST 2014 --- end --- [08.06.2014 08:36:47] ------------------------------------- [08.06.2014 08:36:47] Process "19263" for /data/develop/scripts/test/004test.sh is still running [08.06.2014 08:36:47] The log file is "/var/tmp/execute_scripts.sh.19041.work/004test.sh.19041.log" [08.06.2014 08:36:47] Process "19249" for /data/develop/scripts/test/003test.sh is still running [08.06.2014 08:36:47] The log file is "/var/tmp/execute_scripts.sh.19041.work/003test.sh.19041.log" [08.06.2014 08:36:47] Process "19235" for /data/develop/scripts/test/002test.sh is still running [08.06.2014 08:36:47] The log file is "/var/tmp/execute_scripts.sh.19041.work/002test.sh.19041.log" [08.06.2014 08:36:47] Process "19220" for /data/develop/scripts/test/001test.sh is still running [08.06.2014 08:36:47] The log file is "/var/tmp/execute_scripts.sh.19041.work/001test.sh.19041.log" [08.06.2014 08:36:47] 7 background processes (from 10) are still running [08.06.2014 08:36:47] Waiting for 10 second(s) now (total wait time until now: 10 seconds; max. timeout is 3600 seconds ; remaining wait time is 3590 seconds) ... [08.06.2014 08:36:57] Process "19333" for /data/develop/scripts/test/009test.sh is still running [08.06.2014 08:36:57] The log file is "/var/tmp/execute_scripts.sh.19041.work/009test.sh.19041.log" [08.06.2014 08:36:57] Process "19305" for /data/develop/scripts/test/007test.sh finished [08.06.2014 08:36:57] The log file is "/var/tmp/execute_scripts.sh.19041.work/007test.sh.19041.log" [08.06.2014 08:36:57] The last 20 line(s) of the logfile "/var/tmp/execute_scripts.sh.19041.work/007test.sh.19041.log" are: [08.06.2014 08:36:57] ------------------------------------- # ### ---- Log of the executable "/data/develop/scripts/test/007test.sh" executed at So 8. Jun 08:36:37 CEST 2014--- start --- This is /data/develop/scripts/test/007test.sh ... # ### ---- Log of the executable "/data/develop/scripts/test/007test.sh" executed at So 8. Jun 08:36:57 CEST 2014 --- end --- [08.06.2014 08:36:57] ------------------------------------- [08.06.2014 08:36:57] Process "19291" for /data/develop/scripts/test/006test.sh is still running [08.06.2014 08:36:57] The log file is "/var/tmp/execute_scripts.sh.19041.work/006test.sh.19041.log" [08.06.2014 08:36:57] Process "19263" for /data/develop/scripts/test/004test.sh is still running [08.06.2014 08:36:57] The log file is "/var/tmp/execute_scripts.sh.19041.work/004test.sh.19041.log" [08.06.2014 08:36:57] Process "19249" for /data/develop/scripts/test/003test.sh is still running [08.06.2014 08:36:57] The log file is "/var/tmp/execute_scripts.sh.19041.work/003test.sh.19041.log" [08.06.2014 08:36:57] Process "19235" for /data/develop/scripts/test/002test.sh finished [08.06.2014 08:36:57] The log file is "/var/tmp/execute_scripts.sh.19041.work/002test.sh.19041.log" [08.06.2014 08:36:57] The last 20 line(s) of the logfile "/var/tmp/execute_scripts.sh.19041.work/002test.sh.19041.log" are: [08.06.2014 08:36:57] ------------------------------------- # ### ---- Log of the executable "/data/develop/scripts/test/002test.sh" executed at So 8. Jun 08:36:36 CEST 2014--- start --- This is /data/develop/scripts/test/002test.sh ... # ### ---- Log of the executable "/data/develop/scripts/test/002test.sh" executed at So 8. Jun 08:36:56 CEST 2014 --- end --- [08.06.2014 08:36:57] ------------------------------------- [08.06.2014 08:36:57] Process "19220" for /data/develop/scripts/test/001test.sh is still running [08.06.2014 08:36:57] The log file is "/var/tmp/execute_scripts.sh.19041.work/001test.sh.19041.log" [08.06.2014 08:36:57] 5 background processes (from 10) are still running [08.06.2014 08:36:57] Waiting for 10 second(s) now (total wait time until now: 20 seconds; max. timeout is 3600 seconds ; remaining wait time is 3580 seconds) ... [08.06.2014 08:37:07] Process "19333" for /data/develop/scripts/test/009test.sh is still running [08.06.2014 08:37:07] The log file is "/var/tmp/execute_scripts.sh.19041.work/009test.sh.19041.log" [08.06.2014 08:37:08] Process "19291" for /data/develop/scripts/test/006test.sh is still running [08.06.2014 08:37:08] The log file is "/var/tmp/execute_scripts.sh.19041.work/006test.sh.19041.log" [08.06.2014 08:37:08] Process "19263" for /data/develop/scripts/test/004test.sh is still running [08.06.2014 08:37:08] The log file is "/var/tmp/execute_scripts.sh.19041.work/004test.sh.19041.log" [08.06.2014 08:37:08] Process "19249" for /data/develop/scripts/test/003test.sh is still running [08.06.2014 08:37:08] The log file is "/var/tmp/execute_scripts.sh.19041.work/003test.sh.19041.log" [08.06.2014 08:37:08] Process "19220" for /data/develop/scripts/test/001test.sh finished [08.06.2014 08:37:08] The log file is "/var/tmp/execute_scripts.sh.19041.work/001test.sh.19041.log" [08.06.2014 08:37:08] The last 20 line(s) of the logfile "/var/tmp/execute_scripts.sh.19041.work/001test.sh.19041.log" are: [08.06.2014 08:37:08] ------------------------------------- # ### ---- Log of the executable "/data/develop/scripts/test/001test.sh" executed at So 8. Jun 08:36:36 CEST 2014--- start --- This is /data/develop/scripts/test/001test.sh ... # ### ---- Log of the executable "/data/develop/scripts/test/001test.sh" executed at So 8. Jun 08:37:06 CEST 2014 --- end --- [08.06.2014 08:37:08] ------------------------------------- [08.06.2014 08:37:08] 4 background processes (from 10) are still running [08.06.2014 08:37:08] Waiting for 10 second(s) now (total wait time until now: 30 seconds; max. timeout is 3600 seconds ; remaining wait time is 3570 seconds) ... [08.06.2014 08:37:18] Process "19333" for /data/develop/scripts/test/009test.sh finished [08.06.2014 08:37:18] The log file is "/var/tmp/execute_scripts.sh.19041.work/009test.sh.19041.log" [08.06.2014 08:37:18] The last 20 line(s) of the logfile "/var/tmp/execute_scripts.sh.19041.work/009test.sh.19041.log" are: [08.06.2014 08:37:18] ------------------------------------- # ### ---- Log of the executable "/data/develop/scripts/test/009test.sh" executed at So 8. Jun 08:36:37 CEST 2014--- start --- This is /data/develop/scripts/test/009test.sh ... # ### ---- Log of the executable "/data/develop/scripts/test/009test.sh" executed at So 8. Jun 08:37:17 CEST 2014 --- end --- [08.06.2014 08:37:18] ------------------------------------- [08.06.2014 08:37:18] Process "19291" for /data/develop/scripts/test/006test.sh is still running [08.06.2014 08:37:18] The log file is "/var/tmp/execute_scripts.sh.19041.work/006test.sh.19041.log" [08.06.2014 08:37:18] Process "19263" for /data/develop/scripts/test/004test.sh is still running [08.06.2014 08:37:18] The log file is "/var/tmp/execute_scripts.sh.19041.work/004test.sh.19041.log" [08.06.2014 08:37:18] Process "19249" for /data/develop/scripts/test/003test.sh is still running [08.06.2014 08:37:18] The log file is "/var/tmp/execute_scripts.sh.19041.work/003test.sh.19041.log" [08.06.2014 08:37:18] 3 background processes (from 10) are still running [08.06.2014 08:37:18] Waiting for 10 second(s) now (total wait time until now: 40 seconds; max. timeout is 3600 seconds ; remaining wait time is 3560 seconds) ... [08.06.2014 08:37:28] Process "19291" for /data/develop/scripts/test/006test.sh is still running [08.06.2014 08:37:28] The log file is "/var/tmp/execute_scripts.sh.19041.work/006test.sh.19041.log" [08.06.2014 08:37:28] Process "19263" for /data/develop/scripts/test/004test.sh finished [08.06.2014 08:37:28] The log file is "/var/tmp/execute_scripts.sh.19041.work/004test.sh.19041.log" [08.06.2014 08:37:28] The last 20 line(s) of the logfile "/var/tmp/execute_scripts.sh.19041.work/004test.sh.19041.log" are: [08.06.2014 08:37:28] ------------------------------------- # ### ---- Log of the executable "/data/develop/scripts/test/004test.sh" executed at So 8. Jun 08:36:37 CEST 2014--- start --- This is /data/develop/scripts/test/004test.sh ... # ### ---- Log of the executable "/data/develop/scripts/test/004test.sh" executed at So 8. Jun 08:37:22 CEST 2014 --- end --- [08.06.2014 08:37:28] ------------------------------------- [08.06.2014 08:37:28] Process "19249" for /data/develop/scripts/test/003test.sh finished [08.06.2014 08:37:28] The log file is "/var/tmp/execute_scripts.sh.19041.work/003test.sh.19041.log" [08.06.2014 08:37:28] The last 20 line(s) of the logfile "/var/tmp/execute_scripts.sh.19041.work/003test.sh.19041.log" are: [08.06.2014 08:37:28] ------------------------------------- # ### ---- Log of the executable "/data/develop/scripts/test/003test.sh" executed at So 8. Jun 08:36:37 CEST 2014--- start --- This is /data/develop/scripts/test/003test.sh ... # ### ---- Log of the executable "/data/develop/scripts/test/003test.sh" executed at So 8. Jun 08:37:27 CEST 2014 --- end --- [08.06.2014 08:37:28] ------------------------------------- [08.06.2014 08:37:28] 1 background process (from 10) is still running [08.06.2014 08:37:28] Waiting for 10 second(s) now (total wait time until now: 50 seconds; max. timeout is 3600 seconds ; remaining wait time is 3550 seconds) ... [08.06.2014 08:37:38] Process "19291" for /data/develop/scripts/test/006test.sh finished [08.06.2014 08:37:38] The log file is "/var/tmp/execute_scripts.sh.19041.work/006test.sh.19041.log" [08.06.2014 08:37:38] The last 20 line(s) of the logfile "/var/tmp/execute_scripts.sh.19041.work/006test.sh.19041.log" are: [08.06.2014 08:37:38] ------------------------------------- # ### ---- Log of the executable "/data/develop/scripts/test/006test.sh" executed at So 8. Jun 08:36:37 CEST 2014--- start --- This is /data/develop/scripts/test/006test.sh ... # ### ---- Log of the executable "/data/develop/scripts/test/006test.sh" executed at So 8. Jun 08:37:32 CEST 2014 --- end --- [08.06.2014 08:37:38] ------------------------------------- [08.06.2014 08:37:38] The loop to wait for the background processes ended at So 8. Jun 08:37:38 CEST 2014, the runtime is 0:01:00. [08.06.2014 08:37:38] [08.06.2014 08:37:38] Executing the stop script "/data/develop/scripts/test/stop.sh" ... This is /data/develop/scripts/test/stop.sh ... [08.06.2014 08:37:38] [08.06.2014 08:37:38] All done (10 executable(s) ). [08.06.2014 08:37:38] [08.06.2014 08:37:38] [08.06.2014 08:37:38] 10 executable(s) executed: /data/develop/scripts/test/001test.sh /data/develop/scripts/test/002test.sh /data/develop/scripts/test/003test.sh /data/develop/scripts/test/004test.sh /data/develop/scripts/test/005test.sh /data/develop/scripts/test/006test.sh /data/develop/scripts/test/007test.sh /data/develop/scripts/test/008test.sh /data/develop/scripts/test/009test.sh /usr/bin/uname [08.06.2014 08:37:38] 2 executable(s) not executed because they are on the exclude list: /data/develop/scripts/test/start.sh /data/develop/scripts/test/stop.sh [08.06.2014 08:37:38] The working directory was "/var/tmp/execute_scripts.sh.19041.work". [08.06.2014 08:37:38] The log file used was "/var/tmp/execute_scripts.LOG" [08.06.2014 08:37:38] execute_scripts.sh v1.0.0 started at So 8. Jun 08:36:34 CEST 2014 and ended at So 8. Jun 08:37:38 CEST 2014. [08.06.2014 08:37:38] The RC is 0. [xtrnaw7@t540p scripts]$ |