1
|
#!/bin/sh
|
2
|
. /home/assos/bin/scripts-config.sh
|
3
|
|
4
|
log=$(cat)
|
5
|
command="$1"
|
6
|
|
7
|
current_day=$(date "+%Y-%m-%d")
|
8
|
current_time=$(date "+%H-%M-%S")
|
9
|
log_file="${d7_dir_log}/${current_day}.log"
|
10
|
|
11
|
echo -e "%%%% ${command} — ${current_time}\n${log}\n%%%% END\n" > "${log_file}"
|