HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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'`