Projet

Général

Profil

Paste
Télécharger (164 octets) Statistiques
| Branche: | Révision:

root / bin / log.sh @ 59851e2f

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}"