Project

General

Profile

Paste
Download (164 Bytes) Statistics
| Branch: | Revision:

root / bin / log.sh @ 5a1949a4

1
#!/bin/sh
2
. /home/assos/bin/scripts-config.sh
3

    
4
log=$(cat)
5

    
6
current_day=$(date "+%Y-%m-%d")
7
log_file="${d7_dir_log}/${current_day}.log"
8

    
9
echo "$log" > "${log_file}"