Operating System - Linux
1827855 Members
1703 Online
109969 Solutions
New Discussion

Re: how to make {DATE}.log

 
file system
Frequent Advisor

how to make {DATE}.log

thank you all your help..

can I get some helps too

the output is logging {DATE}.log

They are captured 80 port

OUTPUT is below

122.203.181.66 5511
210.223.134.223 4426
220.119.104.171 2782
222.232.158.138 15582
61.78.62.12 2868
61.81.78.44 10188

how can I do that? rotate {DATE}.log
that log is piled up the {DATE}.log

2 REPLIES 2
Ivan Ferreira
Honored Contributor

Re: how to make {DATE}.log

If you want to create a file with the date as the name, you can use for example:

command > $(date +%d-%m-%Y).log
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
skt_skt
Honored Contributor

Re: how to make {DATE}.log


BCV_INIT_LOG=${LOG_DIR}/rdfa_monitor_log.`date '+%m%d%y'`