Posts

Rotate Logs Older Than 7 days and Delete Archive [on hold]

Image
up vote -1 down vote favorite I'm trying to configure logrotate to find all the log files older than 7 days from certain directories and archive them. The archived files must be deleted. I have a structure as follows. /var/log/myapp/subfolder1/*.log (hundreds of logs) /var/log/myapp/subfolder2/*.log (hundreds of logs) /var/log/myapp/subfolder3/*.log (hundreds of logs) /var/log/myapp/subfolder4/*.log (hundreds of logs) I know I should create a configuration file in /etc/logrotate.d/ , but how can I specify the archiving of log file older than 7 days in each directory and remove the archived files? logs logrotate share | improve this question edited Dec 4 at 13:...

Can product DFA for intersection of two disjoint languages be minimal?

Image
up vote 3 down vote favorite 1 I know that it isn't necessary that cross product automaton for two minimal DFAs be minimal, but according to my analysis, if two DFAs do not have any common string then their cross product of minimal DFAs would be minimal. What should I do to prove this? finite-automata share | cite | improve this question edited 32 mins ago Yuval Filmus 188k 12 177 339 asked 4 hours ago Amisha Bansal 16 2 New...